What happens if you make changes to the same line simultaneously?
.gitignore
.gitignore
template to keep the repository nice and clean
.gitignore
file automatically to the remote repo.gitignore
file, make your first commit and push.git init
git remote add origin [remote-url]
git pull origin main
git add .
git commit -m "first commit"
git push --set-upstream origin main
git clone
./UserSettings/
folder to .gitignore
error: failed to push some refs to [your-url]
main
branch, while your local repository has master
git branch -m main
to rename your local master
to main
push
and pull
commandspush
and pull
commands?
git remote add origin
.git pull origin main
: After adding a remote, we don't yet know which branch to pull from. main
(or master
!) is the default branchgit push --set-upstream origin main
: In the first push
, we decide which branch to link our current branch into.git push
and git pull
..gitattributes