To commit changes locally then push them to GitHub
1- cd (surround the path with "")
2- "git branch" to make sure you are working on the right branch
2- "git status -s" check the current status
3- "git add ." add all in current and sub dirs
4- "git commit -m "message""
5- "git push origin branchName"
6- Enter the password, and that's it
Creating a branch:
1- "git clone git@github.com:repository" to download a local copy of the main branch
2- modify the files or copy newer files over the the cloned one
3- "git branch newBranchName" create a new branch
4- "git checkout newBranchName" switch to the new branch
5- work normaly on the new branch
No comments:
Post a Comment