tagged [git]

Git command to display HEAD commit id?

Git command to display HEAD commit id? What command can I use to print out the commit id of HEAD? This is what I'm doing by hand: But I need a script that can reliably pipe the output of some command ...

1 Apr at 02:46

Differences between git pull origin master & git pull origin/master

Differences between git pull origin master & git pull origin/master What is the difference between `git pull origin master` and `git pull origin/master` ?

21 May at 17:11

How do I delete unpushed git commits?

How do I delete unpushed git commits? I accidentally committed to the wrong branch. How do I delete that commit?

7 Jul at 17:47

Why not check in AssemblyInfo.cs

Why not check in AssemblyInfo.cs I was watching a video on Git and the guy went out of his way to ignore the AssemblyInfo.cs. Why should I not check that file in? If I don't check the file in won't Vi...

19 Jul at 02:37

Why is Git better than Subversion?

Why is Git better than Subversion? I've been using [Subversion](http://en.wikipedia.org/wiki/Apache_Subversion) for a few years and after using [SourceSafe](http://en.wikipedia.org/wiki/Microsoft_Visu...

23 Jul at 10:24

Git will not init/sync/update new submodules

Git will not init/sync/update new submodules Here's part of the contents of my `.gitmodules` file: However, `.git/config` on

26 Jul at 20:59

Print commit message of a given commit in git

Print commit message of a given commit in git I need a plumbing command to print the commit message of one given commit - nothing more, nothing less.

28 Jul at 20:36

How do I list all remote branches in Git 1.7+?

How do I list all remote branches in Git 1.7+? I've tried `git branch -r`, but that only lists remote branches that I've tracked locally. How do I find the list of those that I haven't? (It doesn't ma...

12 Aug at 20:37

Forking vs. Branching in GitHub

Forking vs. Branching in GitHub I'd like to know more about the advantages and disadvantages of forking a github project vs. creating a branch of a github project. Forking makes my version of the proj...

31 Aug at 17:5

Search code inside a Github project

Search code inside a Github project Is there a way to grep for something inside a Github project's code? I could pull the source and grep it locally, but I was wondering if it's possible through the w...

1 Sep at 08:29

Locate Git installation folder on Mac OS X

Locate Git installation folder on Mac OS X I'm just curious, Where Git get installed (via DMG) on Mac OS X file system?

2 Sep at 04:4

Why does my 'git branch' have no master?

Why does my 'git branch' have no master? I'm a git newbie and I keep reading about a "master" branch. Is "master" just a conventional name that people used or does it have special meaning like `HEAD`?...

2 Sep at 04:8

Push git commits & tags simultaneously

Push git commits & tags simultaneously I'm aware of the reason that `git push --tags` is a separate operation to plain old `git push`. Pushing tags should be a conscious choice since you don't want ac...

19 Sep at 09:21

Git commit date

Git commit date Other than parsing git log for the date string, is there a Git native way to report the date of a certain commit?

28 Sep at 16:24

Git Windows Command Prompt gets stuck during Git commands with (END)

Git Windows Command Prompt gets stuck during Git commands with (END) I've got Git for Windows setup (msysgit) and it was working fine for the last few days and today I've encountered an odd error. Whe...

13 Oct at 12:28

No submodule mapping found in .gitmodule for a path that's not a submodule

No submodule mapping found in .gitmodule for a path that's not a submodule I have a project that has a submodule at `lib/three20` My `.gitmodule` file looks like this: I have cloned this in the past w...

15 Nov at 14:38

How can I see what has changed in a file before committing to git?

How can I see what has changed in a file before committing to git? I've noticed that while working on one or two tickets, if I step away, I'm not sure what I worked on, what changed, etcetera. Is ther...

16 Dec at 01:4

How to output git log with the first line only?

How to output git log with the first line only? I am trying to customize the format for `git log`. I want all commits to be shown in one line. Each line should only show the first line of the commit m...

How share a config file in git?

How share a config file in git? I have editor settings that I want to spread in all repositories. If the user defines its own settings, it should erase the repository choices of course. I want to do t...

16 Jan at 20:1

git ignore vim temporary files

git ignore vim temporary files What is the correct way to make git ignore temporary files produced by vim in all directories (either globally across the system or locally for a single project)?

28 Jan at 02:13

Git push existing repo to a new and different remote repo server?

Git push existing repo to a new and different remote repo server? Say I have a repository on [git.fedorahosted.org](http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=summary) and I want to clone this i...

3 Mar at 14:18

git replace local version with remote version

git replace local version with remote version How can I tell git to ignore my local file and take the one from my remote branch without trying to merge and causing conflicts?

13 Mar at 07:52

What does git push -u mean?

What does git push -u mean? I have two different versions of git. In the 1.6.2 version, `git push` does not have the `-u` option. It only appears in the 1.7.x version. From the docs, the `-u` is relat...

6 Apr at 04:34

Fully backup a git repo?

Fully backup a git repo? Is there a simple way to backup an entire git repo including all branches and tags?

7 Apr at 08:44

What exactly does the "u" do? "git push -u origin master" vs "git push origin master"

What exactly does the "u" do? "git push -u origin master" vs "git push origin master" I'm apparently terrible at using git, despite my best attempts to understand it. From [kernel.org](http://www.kern...

18 Apr at 01:55