Here’s a nice little cheat sheet of the most common commands I’ve been using in Git, to push my changes out to Github:
#change directory to c:\dev\projects
#get the status of current directory
#stage all pending addes/updates
git add .
#stage all pending updates/deletes
git add -u
#commit the changes with a message
git commit -m "my message"
#push the committed changes to github
git push origin master
#create a new branch named 'myBranch'
git branch myBranch
#list all existing branches
#switch to the 'myBranch' branch
git checkout myBranch
#switch to the master branch
git checkout master
#merge 'myBranch' into the current branch
git merge myBranch
I'm a software developer who works primarily with .NET and C# - but I love exploring new languages and technologies. I'm passionate about creating software and learning how to do it better.