GitandGithubBest PDF
GitandGithubBest PDF
Developers also face the above problem when working on the project and maintaining
the source code.
Before telling about Git let me give some more basic information
6. What is Git?
a. Git is a software and version control tool to track changes in the source
code.
7. What is Github?
a. Github is a web based cloud service to host the source code in a Git
repository.
b. Github requires Git. But, Git does not require Github.
Git commands
1. git init
2. git status
3. git add <file> -> adding one file
4. git add . or git add *.* -> adding multiple changes
5. git commit –m “message”
6. git config --global user.email “[email protected]”
7. git config --global user.name “password”
8. git remote add origin <URL>
9. git push –u origin master
10. git clone <URL>
11. git branch <branch-name>
12. git checkout <branch-name>
13. git add <files>
14. git commit –m “message”