Skip to content

Himanshur25/git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git

  1. created a new branch and switched to that branch git checkout -b main
  2. Created a new file touch b.txt
  3. performed git add and commit with commit name. git add . git commit -m "Commit message"
  4. Added one more commit using the same command as 3.
  5. git checkout master
  6. To check all the commits git log
  7. merge main commit with master commit git merge main
  8. git log
  9. Created one more commit git add . git commit -m "Commit message"
  10. git checkout master git add . git commit -m "Commit message"
  11. Added one more commit using the same command used in 10.
  12. git checkout master
  13. To check all the commits git log
  14. merge main commit with master commit git merge main
  15. git log
  16. created a new branch and switched to that branch git checkout -b main1
  17. created a file touch c.txt
  18. Added and commited
  19. git checkout master
  20. Commited again
  21. git checkout main1
  22. git rebase master
  23. updated text file
  24. To restore the changes git stash
  25. To check the changes made git stash pop
  26. git stash list
  27. one more commit on a.txt git add . git commit -m "Commit message"
  28. git checkout main
  29. one more commit on b.txt git add . git commit -m "Commit message"
  30. Taking the commit id using git log
  31. git checkout master
  32. git cherry-pick commit-id
  33. git checkout master
  34. git log
  35. created multiple stash in a single branch(main) using git stash
  36. to pop up a particular stash git stash apply stash@{1}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published