Git Branch and pushing local branches to Github -------------------------------------------------------------------Clone a clean copy of the repository (if you don’t already

have one) Create the branch Switch over to the branch (you’ll still be on ‘master’ after creating it) Make the edits (or just copy the files over in my case) Commit Explicitly push the local branch back to remote (if you’re using a remote reposito ry like Github) Commands: git clone git://RepositoryAddressGoesHere git branch newBranchName git checkout newBranchName nano fileToBeModified #Modify the files any way you wish here git commit -a -m "Commit Message" git push origin newBranchName -----------------------------------------------------------------

Sign up to vote on this title
UsefulNot useful