-
๐ ๐ข๐ญ ๐ฅ๐จ๐ --๐๐ฎ๐ญ๐ก๐จ๐ซ="<๐๐ฎ๐ญ๐ก๐จ๐ซ>": Shows commits authored by the specified author.
-
๐ ๐ข๐ญ ๐๐ข๐๐ --๐ง๐๐ฆ๐-๐จ๐ง๐ฅ๐ฒ: Shows only the names of files that have differences between two commits or branches.
-
๐ ๐ข๐ญ ๐ฉ๐ซ๐ฎ๐ง๐: Removes unreachable objects and refs from the local repository.
-
๐ ๐ข๐ญ ๐๐ข๐๐ --๐ฌ๐ญ๐๐ ๐๐: Show the differences between the staging area and the last commit.
-
๐ ๐ข๐ญ ๐ซ๐๐๐ฅ๐จ๐ : Shows a log of all the changes made to the refs (branches, tags) in the repository.
-
๐ ๐ข๐ญ ๐ซ๐๐ฌ๐ญ๐จ๐ซ๐ <๐๐ข๐ฅ๐_๐ง๐๐ฆ๐>: Restores the specified file to its state in the last commit, discarding any changes made to the file in the working directory.
-
๐ ๐ข๐ญ ๐๐ข๐ฌ๐๐๐ญ: Use binary search to find the commit that introduced a bug.
-
๐ ๐ข๐ญ ๐๐ฅ๐๐ฆ๐ <๐๐ข๐ฅ๐_๐ง๐๐ฆ๐>: Shows the author and commit details for each line of a file.
-
๐ ๐ข๐ญ ๐ฌ๐ก๐จ๐ซ๐ญ๐ฅ๐จ๐ : Summarizes the git log output, grouping commits by author.
-
๐ ๐ข๐ญ ๐ฅ๐จ๐ -๐ <๐ฌ๐ญ๐ซ๐ข๐ง๐ >: Finds commits that added or removed the given string.
-
๐ ๐ข๐ญ ๐ฆ๐๐ซ๐ ๐ --๐ฌ๐ช๐ฎ๐๐ฌ๐ก <๐๐ซ๐๐ง๐๐ก_๐ง๐๐ฆ๐>: Merge a branch, but condense all changes into a single commit.
-
๐ ๐ข๐ญ ๐๐๐ญ๐๐ก --๐ฉ๐ซ๐ฎ๐ง๐: Fetch changes from a remote repository and clean up deleted remote branches.
-
๐ ๐ข๐ญ ๐ฌ๐ก๐จ๐ฐ <๐๐จ๐ฆ๐ฆ๐ข๐ญ>:<๐๐ข๐ฅ๐๐ง๐๐ฆ๐>: Show the file as it was at the specified commit.
-
๐ ๐ข๐ญ ๐ง๐จ๐ญ๐๐ฌ: Allows you to add notes to individual commits without modifying the commit message.
-
๐ ๐ข๐ญ ๐๐ฅ๐๐๐ง: Removes untracked files from the working directory.
Created
May 7, 2024 06:39
-
-
Save lakinmindfire/572a0bfecc8a42644344cc3fbc21c5a2 to your computer and use it in GitHub Desktop.
15 Useful Git Commands
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment