Beruflich Dokumente
Kultur Dokumente
Set-up repo
git clone LINK (htttps/ssh) - run command in a common folder, in that place it will create a folder with the repo's name
Update repo
git branch --set-upstream master origin/master (setting correspondence between local and remote
branches)
git pull
or
git pull origin master
Branching
Merging
If there are conflicts, git will automatically add tags in specified files.
As this:
<<<<<< HEAD
what is in current branch
====
what is in merging folder
>>>>>>>>>> 53fsd534dgghs6
Stashing
*You can stash (aka hide) the current changes while you checkout to another branch or work at
something else, commit, then unstash and continue
Reset changes
Tags
*placing a notice at one stage of a branch (the present commit) to specify that until that point it
reached a certain point.
git tag (list of tagged versions)
**Git doesnt pull tags by default (in torotise check the tags option)**
git push --tags (needed to push the tags too)