Git is an open-source distributed version control system (DVCS). Use this tag for questions related to Git usage and workflows. Do not use this tag for general programming questions that happen to involve a Git repository.
I started some work on a new feature and after coding for a bit, I decided this feature should be on its own b
Git clone will behave copying remote current working branch into local. Is there any way to clone a
Does anybody know how to easily undo a git rebase? The only way that comes to mind is to go at it manually:
I would like to know how to delete a commit. By delete, I mean it is as if I didn't make that commit, an
I know how to make a new branch that tracks remote branches, but how do I make an existing branch track a remo
How do I remove a Git submodule? By the way, is there a reason I can't simply do git submodule rm whate
I forked a project, applied several fixes and created a pull request which was accepted. A few days later, ano
How can I squash my last X commits together into one commit using Git?
Within my master branch, I did a git merge some-other-branch locally, but never pushed the changes to origin m
I have a master and a development branch, both pushed to GitHub. I've cloned, pulled, and fetched, but I
How do I reset my local branch to be just like the branch on the remote repository? I did: git reset --hard
I pulled a project from GitHub a few days ago. I've since discovered that there are several forks on GitH
I have a repo (origin) on a USB key that I cloned on my hard drive (local). I moved "origin" to a NAS and succ
How can I add a blank directory (that contains no files) to a Git repository?
I want to be able to do the following: Create a local branch based on some other (remote or local) branch (via
I have made some changes to a file which has been committed a few times as part of a group of files, but now w
I want to resolve merge conflicts in my Git repository. How can I do that?
How do I discard changes in my working copy that are not in the index?
I'd like to move the last several commits I've committed to master to a new branch and take master b