Wednesday, 17 June 2020
How to use github for source code maintainance?
For own repository maintainance, you can do the following steps:-
1. git clone the github_code_as_root
2. cd root
3. run or modify something in the code
4. cd root
5. git add .
6. git commit "changes have been done"
7. git push
(all code in the master branch of github will be updated)
For collaborated project with others, everything is the same, except:
1.git clone the github_code_as_root
2.cd root
3. git checkout -b ninja_branch
4. git status
5. (modify something, blak blak blak)
6. git add .
7. git commit -m "fix more errors in using scores versus score"
8. git push -u origin ninja_branch
(go to github website and pull a request for merging, add someone to review)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment