How to Install Git
Type the following commands in the terminal
- sudo apt-get install git
How To Use Git
Type the following commands in the terminal
- Adding a repository and initial committing
- git remote -v
- rm -rf .git
- git init
- git remote add origin ssh:<origin-path>
- git status
- git add .
- git status
- git commit -m “<message>”
- git push origin master
- Pushing in the git after initial commit (Here I have mentioned the basic and most important commands needful while push in the repository)
- git status
- git add .
- git status
- git commit -m “<message>”
- git fetch
- git branch
- git rebase origin/master
- git push origin master
No comments:
Post a Comment