Version control is the management of changes to documents, programs, and other information stored as computer files.

learn more… | top users | synonyms (8)

149
votes
5answers
25k views

Definition of “downstream” and “upstream”

I've started playing with Git and have come across the terms "upstream" and "downstream". I've seen these before but never understand them fully. What do these terms mean in the context of SCMs and ...
53
votes
15answers
8k views

When should you branch?

When working with a SCM system, when should you branch?
489
votes
18answers
137k views

How do I change the author of a commit in git?

I was writing a simple script in the school computer, and commiting the changes to git (in a repo that was in my pendrive, cloned from my computer at home). After several commits I realized I was ...
246
votes
6answers
51k views

git rebase vs git merge

When does one use git rebase vs git merge? Does one still need to merge after a successful rebase?
251
votes
11answers
58k views

How do you merge two git repositories?

Consider the following scenario: I have developed small experimental project A in its own git repo. It has now matured, and I'd like A to be part of larger project B, which has its own big repository. ...
532
votes
13answers
109k views

Using Git and Dropbox together effectively?

Is there a good tutorial where I can learn using Git and Dropbox together effectively?
450
votes
14answers
95k views

.gitignore file not ignoring

I have an already initialized git repo that I added a .gitignore file to, how can I refresh the file index so the files I want ignored get ignored?
386
votes
10answers
27k views

Git and Mercurial - Compare and Contrast

For a while now I've been using subversion for my personal projects. More and more I keep hearing great things about Git and Mercurial, and DVCS in general. I'd like to give the whole DVCS thing a ...
419
votes
10answers
82k views

git workflow and rebase vs merge questions

I've been using git now for a couple months on a project with one other developer. I have several years of experience with svn, so I guess I bring a lot of baggage to the relationship. I have heard ...
158
votes
6answers
70k views

How do I push amended commit to the remote git repo?

When I've worked a bit with my source code, I do my usual thing commit and then I push to a remote repo. But then I noticed I forgot to organize my imports in the source code. So I do the amend ...
60
votes
13answers
13k views

How do you maintain development code and production code?

What are the best practices and rules-of-thumb to follow while maintaining code? Is it good practice to have only the production ready code in the development branch, or should untested latest code ...
51
votes
5answers
9k views

Which commit has this blob?

Given the hash of a blob, is there a way to get a list of commits that have this blob in their tree?
367
votes
13answers
87k views

Git ignore file for Xcode projects

Which files should I include in .gitignore when using Git in conjunction with Xcode?
37
votes
7answers
4k views

Distributed Version Control Systems and the Enterprise - a Good mix?

I can see why distributed source control systems (DVCS - like Mercurial) make sense for open source projects. But do they make sense for an enterprise? (over a centralized Source Control System such ...
243
votes
6answers
78k views

Managing large binary files with git

I am looking for opinions of how to handle large binary files on which my source code (web application) is dependent. We are currently discussing several alternatives: Copy the binary files by hand. ...

1 2 3 4 5 90
15 30 50 per page