tagged [git]

Clone only one branch

Clone only one branch I would like to know how I could clone only one branch instead of cloning the whole Git repository.

28 Jun at 00:0

How to merge remote changes at GitHub?

How to merge remote changes at GitHub? I'm getting following error, whn trying first Github push: ``` [rejected] master -> master (non-fast forward) error: failed to push some refs to 'git@github.com:...

2 Jul at 08:12

GitSharp vs NGit

GitSharp vs NGit What is the current state of [GitSharp](https://github.com/henon/GitSharp) and [NGit](https://github.com/mono/ngit) and which one is better suited for Git automation from .NET?

6 Jul at 15:27

Problems with entering Git commit message with Vim

Problems with entering Git commit message with Vim OS: Windows I write then > "# Please enter the commit message" I write some text, like > "Form validation added" Press Enter and not commited. Then i...

14 Jul at 20:40

Permission denied error on Github Push

Permission denied error on Github Push Recently, I'm added as a member/contributor for Github project. I have cloned that project on local machine. I have made some changes and committed locally and n...

25 Jul at 11:53

git checkout master error: the following untracked working tree files would be overwritten by checkout

git checkout master error: the following untracked working tree files would be overwritten by checkout I have a git repository. It has A B C D E ... commits. Now I want to checkout D as a new branch n...

1 Aug at 08:44

In Git, what is the difference between origin/master vs origin master?

In Git, what is the difference between origin/master vs origin master? I know, is a term for the remote repository and is the branch there. I am purposely omitting the "context" here and I am hoping t...

9 Aug at 00:24

Git merge reports "Already up-to-date" though there is a difference

Git merge reports "Already up-to-date" though there is a difference I have a git repository with 2 branches: master and test. There are differences between master and test branches. Both branches have...

9 Aug at 08:38

How do you revert to a specific tag in Git?

How do you revert to a specific tag in Git? I know how to revert to older commits in a Git branch, but how do I revert back to a branch's state dictated by a tag? I envision something like this: Is th...

20 Aug at 21:17

git: rename local branch failed

git: rename local branch failed I don't know why my attempt of renaming local branch failed. I basically cloned the project, then I also have a submodule within the project, and I downloaded the submo...

22 Aug at 14:14

how to reset develop branch to master

how to reset develop branch to master I have `develop` & `master` branches, my `develop` branch is messy now and i would like to reset it and make it as a copy of my `master`. i'm not sure if merging ...

26 Aug at 04:36

How do I remove files saying "old mode 100755 new mode 100644" from unstaged changes in Git?

How do I remove files saying "old mode 100755 new mode 100644" from unstaged changes in Git? For some reason, when I initially did a pull from the repository for a git project of mine, I got a ton of ...

1 Nov at 22:49

git commit -m vs. git commit -am

git commit -m vs. git commit -am Seems easy but I just don't get it. I am in the root of my application. Here is my workflow. This usually works. All my changes are pushed. But sometimes I have a file...

9 Nov at 15:47

How to push changes to github after jenkins build completes?

How to push changes to github after jenkins build completes? I have a jenkins job that clones the repository from github, then runs the powershell script that increments the version number in the file...

12 Nov at 06:32

GitLab git user password

GitLab git user password I have just installed GitLab. I created a project called project-x. I have created few users and assigned it to the project. Now I tried to clone: It prompted me for a passwor...

22 Nov at 09:52

Put current changes in a new Git branch

Put current changes in a new Git branch I've been editing some modules on the master branch but I haven't committed them. I'm now thinking that these changes should really be on an experimental branch...

1 Dec at 14:38

How to push a single file in a subdirectory to Github (not master)

How to push a single file in a subdirectory to Github (not master) I have changed a single file in a subdirectory of my repository and I want to push just that file to Github. I've made a small chang...

27 Dec at 01:24

Undo a merge by pull request?

Undo a merge by pull request? Someone accepted a pull request which they shouldn't have. Now we have a bunch of broken code merged in. How do you undo a pull request? I was just going to revert the ch...

6 Jan at 02:4

Is there a migration tool from CVS to Git?

Is there a migration tool from CVS to Git? I intend to switch over from CVS to Git. In the case of SVN, there seems to be `cvs2svn`. Is there a similar tool to easily migrate from CVS to Git?

19 Jan at 18:51

Git push error: Unable to unlink old (Permission denied)

Git push error: Unable to unlink old (Permission denied) In the remote server I have a post-receive hook set up in order to make a git checkout of my repository: But when I make a push from my local m...

23 Jan at 05:49

How to get latest Service Stack v3 build?

How to get latest Service Stack v3 build? Last v3 build published on [nuget.org is 3.9.71](http://www.nuget.org/packages/ServiceStack/3.9.71) - since then there have been lots of fixes that I would li...

Setup a Git server with msysgit on Windows

Setup a Git server with msysgit on Windows My friends and I are trying to setup Git for Windows using the tutorial [Git Server: Gitosis and Cygwin on Windows](http://www.markembling.info/blog/view/git...

2 Feb at 07:19

Why Git is not allowing me to commit even after configuration?

Why Git is not allowing me to commit even after configuration? This question seems like a duplicate but it's really not. Just a slight difference that keeps on repeating. git keeps on telling me: "ple...

2 Feb at 16:59

Change a Git remote HEAD to point to something besides master

Change a Git remote HEAD to point to something besides master How do I set a Git remote's HEAD reference to point to something besides "master"? My project has a policy not to use a "master" branch (a...

3 Feb at 00:57

Transfer git repositories from GitLab to GitHub - can we, how to and pitfalls (if any)?

Transfer git repositories from GitLab to GitHub - can we, how to and pitfalls (if any)? Can one transfer repositories from GitLab to GitHub if the need be. If so, how exactly can I go about doing the ...

8 Mar at 06:47