Skip to content

mzakariaCERN/FunWithGit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

FunWithGit

Useful Commands and hacks for using Git

Resources

A git workflow model https://nvie.com/posts/a-successful-git-branching-model/

#Useful git commands

 git merge --no-ff myfeature

The --no-ff flag causes the merge to always create a new commit object, even if the merge could be performed with a fast-forward. This avoids losing information about the historical existence of a feature branch and groups together all commits that together added the feature. see https://nvie.com/posts/a-successful-git-branching-model/ for more details

git fetch origin
git reset --hard origin/master

This happens in case you don't like what you did with your own version and want to set your branch to exactly match the remote branch. see

a semi interactive method to add files

git add -i

About

Useful Commands and hacks for using Git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published