git

1. git init

2. git clone <repository_url>

3. git add <file_name>

4. git commit -m "Commit message"

5. git status

6. git diff

7. git push

git push origin main

8. git pull

git pull origin main

9. git branch

* main   
  development
  feature/new-feature

10. git checkout <branch_name>

git checkout development

11. git merge <branch_name>

git merge feature/new-feature

12. git log

13. git reset

git reset HEAD~1

14. git stash

git stash save "work in progress"

15. git revert <commit_hash>

git revert abc123

16. git remote -v

17. git fetch <remote_name>

18. git tag <tag_name>

19. git merge --abort

20. git cherry-pick <commit_hash>

git
  • 1. git init
  • 2. git clone 3. git add
  • 4. git commit -m "Commit message"
  • 5. git status
  • 6. git diff
  • 7. git push
  • 8. git pull
  • 9. git branch
  • 10. git checkout 11. git merge
  • 12. git log
  • 13. git reset
  • 14. git stash
  • 15. git revert
  • 16. git remote -v
  • 17. git fetch 18. git tag
  • 19. git merge --abort
  • 20. git cherry-pick