Hi I'm Md Musharruf Nawaz
The " Git " tags tutorial
- touch : This command is used to create empty files.
- git status : It is used to check the status.
- git add -A : Add all the files.
- git commit : This command is used to save the code.
- git commit -m "some comments" : This command is used to add some comments without writing only git commit.
- git commit -am "some comments" : Add file and commit at same time.
- git diff : This command is used to compare previous and present modification to code.
- git diff --staged : It compares the staging area with last commit.
- git rm "filename" -f : It is used to remove a file force fully.
- git checkout : This command is used to display the changes to files.
- git checkout --staged "filename" : This command is used to undo the written codes.
- git checkout -f : This command is used to match all your files with the last commit.
- git branch "branch name" : This command create a new branch.
- git branch : It display the list of branches.
- git checkout "branch-name" : This command will make you switch from one branch to another.
- git branch -D "branch_name" : It deletes the branch.
- git checkout -b "new-branch_name" : This command will create a branch and automatically switch into that new branch.
- git reset HEAD~1 : this command is used to remove your last commit by 1.
- git stash : this command is used to remove your files
- git stash pop : this command is used to get back the files who has been sent to back
- git remote -v : this will show the all the url that is attached to this folder.
- git remote add origin "link" : add link with the name origin
- git remote remove "origin"This command remove the link created with name origin.
- git push origin "branch name" : This command pushes the files into a particular repository.
- git pull --rebase origin "branch name" : local and remote changes solves.
- git fetch origin "branch-name":"new branch" : This command will fetch the remote code into new branch.
- git rebase "newly createdbranch"it will resolve the error
- git pull "remote" "branch" : This command will pull the updates made on remote repository.
- git add . && git commit : This command will eleminate the error after pulling the remote repo updated changes
- git commit --amend : This command updates the commit for recent pulled repository.
- git rebase --conitnue : This is printed "Successfully reabased and updated refs/heads/main.
- git merge [branch] --strategy-option ours
- git merge [branch] --strategy-option theirs
- git merge "branch_name : This command will merge that branch into currnet branch.
- clear : This command is used to clear all the above terminal commands.