GitHub repository with the Unity 5.6.1 code for the covr-med project with the IBISC laboratory.
To add a new branch in the local repository
git checkout -b name_of_the_branch_00x
To push a branch to the distant repository
git push -u origin name_of_the_branch_00x
To delete a branch in the local repository
git branch -d name_of_the_branch_00x
To delete a branch in the distant repository
git push -d origin name_of_the_branch_00x
Adding all the changed / deleted / created files to the next commit
git add -A
Adding only the changed and deleted files to the next commit
git add -u
Commiting the changes
git commit -m "Commit message"
Changing the latest commit IF IT IS NOT PUSHED ALREADY
git commit --amend "Updated commit message"
To merge a branch with a second one (fast-forward)
git checkout name_of_the_branch_to_merge_into
git merge name_of_the_branch_to_merge_from
To keep safe a series of changes before a checkout
git stash save
To get back the stashed modifications
git stash pop number_of_the_stash_to_apply_and_drop