Git
Git
git init
git clone
git status
git config
git alias
git commit
git diff
git stash
.gitignore
git tag
git blame
git clean
git revert
git reset
git rm
git rebase
git reflog
git init
git status
git status -s
git config
This command is used to configure various
aspects of git, including information,
preferences, and repository settings.
git diff
git diff --staged
git diff <commit-1> <commit-2>
git diff <branch-1> <branch-2>
git diff <filename>
git stash
git stash
git stash list
git stash apply
git stash pop
git stash clear
.git ignore
git clean
git clean -d
git clean -f
git revert
this command in git is used to undo changes made
in a specific commit or range of commits by
creating a new commit that reverses those
changes. this is a safe way to undo changes
without altering the commit history.
git reset
git reset --hard
git reset <commit>
git reset --hard HEAD
git reset --interactive
git rm
this command in git is used to remove files from
the working directory and git index. this
command can be used to stop tracking files that
are currently being tracked by git or to remove
untracked files from the working directory.
git rm <file>
git rm '*.txt'
git rm -r <directory>
git rebase
this command is used to change the base of a
branch by applying commits from another
branch on top of it. It's commonly used to
integrate changes from one branch into another
while maintaining a clean and linear history.