From a4e1261c7eafe72b187e7602c375c344ceea9ca1 Mon Sep 17 00:00:00 2001 From: Sagar Hudge Date: Tue, 17 Sep 2024 15:08:05 +0530 Subject: [PATCH] Create gitsheet.html --- gitsheet.html | 266 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 266 insertions(+) create mode 100644 gitsheet.html diff --git a/gitsheet.html b/gitsheet.html new file mode 100644 index 0000000..2b255bb --- /dev/null +++ b/gitsheet.html @@ -0,0 +1,266 @@ + + + + + + Git Commands Cheat Sheet + + + +

Git Commands Cheat Sheet

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CommandDescriptionCopy
git initInitialize a new Git repository.
git clone [url]Clone a repository from a URL.
git add [file]Stage changes to a file.
git commit -m "[message]"Commit changes with a message.
git statusShow the working tree status.
git pullFetch and integrate with another repository or a local branch.
git pushUpdate remote refs along with associated objects.
git branchList, create, or delete branches.
git checkout [branch]Switch to a specified branch.
git merge [branch]Merge a branch into the current branch.
git logShow commit logs.
git diffShow changes between commits, commit and working tree, etc.
git reset [file]Unstage a file while retaining its changes.
git rm [file]Remove a file from the working directory and the index.
git stashSave changes temporarily to a stack.
git stash applyApply changes saved in the stash.
git stash dropRemove a stash entry.
git tag [name]Create a new tag.
git fetchDownload objects and refs from another repository.
git remote -vList the remote connections.
git remote add [name] [url]Add a new remote repository.
git remote remove [name]Remove a remote repository.
git cherry-pick [commit]Apply changes from a specific commit.
git rebase [branch]Reapply commits on top of another base tip.
git rebase --continueContinue rebasing after resolving conflicts.
git rebase --abortAbort the rebase process.
git merge --abortAbort the merge process.
git commit --amendModify the last commit.
git log --onelineShow a brief log of commits.
git reflogShow reference logs.
git show [commit]Show various types of objects.
git config --global user.name "[name]"Set a name for your Git configuration.
git config --global user.email "[email]"Set an email for your Git configuration.
git config --listList all Git configuration settings.
git clean -fRemove untracked files from the working directory.
git tag -d [tag]Delete a tag.
git log --graphDisplay a graphical representation of the commit history.
git diff --cachedShow changes staged for the next commit.
git blame [file]Show what revision and author last modified each line of a file.
+ + + +