Hi I'm Md Musharruf Nawaz

The " Git " tags tutorial

  1. touch : This command is used to create empty files.
  2. git status : It is used to check the status.
  3. git add -A : Add all the files.
  4. git commit : This command is used to save the code.
  5. git commit -m "some comments" : This command is used to add some comments without writing only git commit.
  6. git commit -am "some comments" : Add file and commit at same time.
  7. git diff : This command is used to compare previous and present modification to code.
  8. git diff --staged : It compares the staging area with last commit.
  9. git rm "filename" -f : It is used to remove a file force fully.
  10. git checkout : This command is used to display the changes to files.
  11. git checkout --staged "filename" : This command is used to undo the written codes.
  12. git checkout -f : This command is used to match all your files with the last commit.
  13. git branch "branch name" : This command create a new branch.
  14. git branch : It display the list of branches.
  15. git checkout "branch-name" : This command will make you switch from one branch to another.
  16. git branch -D "branch_name" : It deletes the branch.
  17. git checkout -b "new-branch_name" : This command will create a branch and automatically switch into that new branch.
  18. git reset HEAD~1 : this command is used to remove your last commit by 1.
  19. git stash : this command is used to remove your files
  20. git stash pop : this command is used to get back the files who has been sent to back
  21. git remote -v : this will show the all the url that is attached to this folder.
  22. git remote add origin "link" : add link with the name origin
  23. git remote remove "origin"This command remove the link created with name origin.
  24. git push origin "branch name" : This command pushes the files into a particular repository.
  25. git pull --rebase origin "branch name" : local and remote changes solves.
  26. git fetch origin "branch-name":"new branch" : This command will fetch the remote code into new branch.
  27. git rebase "newly createdbranch"it will resolve the error
  28. git pull "remote" "branch" : This command will pull the updates made on remote repository.
  29. git add . && git commit : This command will eleminate the error after pulling the remote repo updated changes
  30. git commit --amend : This command updates the commit for recent pulled repository.
  31. git rebase --conitnue : This is printed "Successfully reabased and updated refs/heads/main.
  32. git merge [branch] --strategy-option ours
  33. git merge [branch] --strategy-option theirs
  34. git merge "branch_name : This command will merge that branch into currnet branch.
  35. clear : This command is used to clear all the above terminal commands.