tagged [version-control]

How to get back to the latest commit after checking out a previous commit?

How to get back to the latest commit after checking out a previous commit? I sometimes check out some previous version of the code to examine or test. I have seen instructions on what to do if I wish ...

31 May at 15:55

Git - is it pull or rebase when working on branches with other people

Git - is it pull or rebase when working on branches with other people So if I'm using branches that are remote (tracked) branches, and I want to get the lastest, I'm still unclear if I should be doing...

10 Jul at 19:27

Which distributed version control system has the best GUI front-ends for Windows?

Which distributed version control system has the best GUI front-ends for Windows? At my workplace we are using CVS as the version control system. Since we are using Windows mostly, TortoiseCVS and Win...

11 Nov at 21:46

How does Git handle symbolic links?

How does Git handle symbolic links? If I have a file or directory that is a symbolic link and I commit it to a Git repository, what happens to it? I would assume that it leaves it as a symbolic link u...

27 Oct at 10:1

Source control for Visual Studio that doesn't require a server?

Source control for Visual Studio that doesn't require a server? Can anyone recommend a source control solution for Visual Studio? I am going to be the only person using it, I just need something to ba...

How do I rename a local Git branch?

How do I rename a local Git branch? How do I rename a local branch which has not yet been pushed to a remote repository? Related: - [Rename master branch for both local and remote Git repositories](ht...

25 Jul at 03:51

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

Do I need to maintain ReSharper's dotsettings.user file in Source Control?

Do I need to maintain ReSharper's dotsettings.user file in Source Control? I noticed ReSharper has created a `dotsettings.user` in my Source folder. ![file.sln.dotSettings.user](https://i.stack.imgur....

22 Oct at 22:17

How can I make git accept a self signed certificate?

How can I make git accept a self signed certificate? Using Git, is there a way to tell it to accept a self signed certificate? I am using an https server to host a git server but for now the certifica...

14 Jul at 11:33

How to convert a normal Git repository to a bare one?

How to convert a normal Git repository to a bare one? How can I convert a 'normal' Git repository to a bare one? The main difference seems to be: - in the normal Git repository, you have a `.git` fold...

How do I merge another developer's branch into mine?

How do I merge another developer's branch into mine? I am relatively new to git. Our organization uses a [Fork & Pull Model](https://help.github.com/articles/using-pull-requests/) for managing changes...

20 Jul at 15:57

Remove a modified file from pull request

Remove a modified file from pull request I have 3 modified files (no new files) in a pull request at the moment. I would like to remove one of those files from the pull request, so that the pull reque...

4 Jun at 13:59

What is the Difference Between Mercurial and Git?

What is the Difference Between Mercurial and Git? I've been using git for some time now on Windows (with msysGit) and I like the idea of distributed source control. Just recently I've been looking at ...

FileVersionInfo and AssemblyInfo

FileVersionInfo and AssemblyInfo Given this snippet from Blah.dll's AssemblyInfo.cs: And then in a separate .exe: Other SO questions show ProductVersion being "correct",

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 to merge a branch into trunk?

How to merge a branch into trunk? I'm facing a peculiar problem with SVN `merge`. I want to merge from a dev branch to trunk. We have multiple dev branches cut off the trunk at the same time. I'm merg...

23 Jan at 20:15

Should I add the Visual Studio .suo and .user files to source control?

Should I add the Visual Studio .suo and .user files to source control? Visual Studio solutions contain two types of hidden user files. One is the solution `.suo` file which is a binary file. The other...

16 Feb at 18:26

How do I make a Git commit in the past?

How do I make a Git commit in the past? I'm converting everything over to Git for my own personal use and I found some old versions of a file already in the repository. How do I commit it to the histo...

What does "Git push non-fast-forward updates were rejected" mean?

What does "Git push non-fast-forward updates were rejected" mean? I'm using Git to manage my two computers and my development. I'm trying to commit changes to GitHub, and I got this error: > Failed to...

13 Feb at 12:38

Set up git to pull and push all branches

Set up git to pull and push all branches I'd like to push and pull all the branches by default, including the newly created ones. Is there a setting that I can define for it? Otherwise, when I add a n...

16 Dec at 13:18

How do I do an initial push to a remote repository with Git?

How do I do an initial push to a remote repository with Git? I've read through countless tutorials and I keep coming up short. Here's what I've got: - - [instructions](http://docs.webfaction.com/softw...

8 Dec at 10:35

How to add my current project to an already existing GitHub repository

How to add my current project to an already existing GitHub repository I'm very new to Git. I've been searching for an answer, but I couldn't find one. In my computer I have a project folder like this...

Version Numbers float, decimal or double

Version Numbers float, decimal or double I have a document management system where documents can have multiple versions. Each version is saved and users can view version history. What I would like to ...

.tfignore is not ignoring files

.tfignore is not ignoring files I have a .tfIgnore file like below whihc is already checked-in I would expect that everyfile which is match with `.autogen.cs` be ignored. But the problem is when files...

1 Mar at 16:43

Which c# project files should I version control?

Which c# project files should I version control? I have a project I'm looking to manually manage via perforce version control as I only have the Express edition. What I'm looking for is which files sh...

1 Mar at 17:42

Why does C# designer-generated code (like Form1.designer.cs) play havoc with Subversion?

Why does C# designer-generated code (like Form1.designer.cs) play havoc with Subversion? My workshop has recently switched to Subversion from SourceSafe, freeing us from automatic locks. This led to c...

How do you manage your Delphi Projects with third-party components in Version Control?

How do you manage your Delphi Projects with third-party components in Version Control? Installing third-party components always take a long time specially if you have large ones, but also it take more...

Tortoise SVN hidden _svn folders

Tortoise SVN hidden _svn folders They are specially annoying when I need to upload to the server a web solution. Is there a way of configuring SVN to create the _svn folders outside my working directo...

21 Oct at 15:23

How to connect local folder to Git repository and start making changes on branches?

How to connect local folder to Git repository and start making changes on branches? I'm new to source control; in the past, I've manually backed up copies of files and made changes on clones then tran...

git pull currently tracked branch

git pull currently tracked branch I use `git checkout -b somebranch origin/somebranch` to make sure my local branches track remotes already. I would like a way to pull from the tracked branch no matte...

18 Mar at 17:9

Is there a source-control system that allows tracking of file name changes?

Is there a source-control system that allows tracking of file name changes? So, I've been living with my cvs repositories for some time. Though there is a thing I miss - if i rename a file that is alr...

8 Oct at 17:20

Choosing version control system

Choosing version control system In out current project we are using VSS and SVN to keep track of the versions. For some reasons the developers in our site are not allowed to commit in them. So when ma...

19 Jan at 16:37

How to use SVN, Branch? Tag? Trunk?

How to use SVN, Branch? Tag? Trunk? I was googling around a little bit and couldn't find a good "beginners" guide to [SVN](http://en.wikipedia.org/wiki/Subversion_%28software%29), not in the meaning o...

15 Dec at 10:31

.NET: Large revision numbers in AssemblyVersionAttribute

.NET: Large revision numbers in AssemblyVersionAttribute We have the convention of versioning our builds as [major].[minor].[micro].[revision], e.g. 2.1.2.33546. Our build-script automatically updates...

How to use Git for Unity3D source control?

How to use Git for Unity3D source control? What are best practices for using [Git](http://en.wikipedia.org/wiki/Git_%28software%29) source control with Unity 3D, particularly in dealing with the binar...

9 Jun at 21:55

How do I migrate an SVN repository with history to a new Git repository?

How do I migrate an SVN repository with history to a new Git repository? I read the Git manual, FAQ, Git - SVN crash course, etc. and they all explain this and that, but nowhere can you find a simple ...

7 Dec at 14:40

Git: "Corrupt loose object"

Git: "Corrupt loose object" Whenever I pull from my remote, I get the following error about compression. When I run the manual compression, I get the same: Does anyone know, what to do about that? Fro...

10 Apr at 18:6

Working with multiple programmers on MS Access

Working with multiple programmers on MS Access Would you recommend working with multiple programmers on an MS Access application? One of our MS Access application has grown to the point where the numb...

29 Oct at 15:42

Undo git pull, how to bring repos to old state

Undo git pull, how to bring repos to old state Is there any way to revert or undo git pull so that my source/repos will come to old state that was before doing git pull ? I want to do this because it ...

5 Dec at 17:42

How do I create a readable diff of two spreadsheets using git diff?

How do I create a readable diff of two spreadsheets using git diff? We have a lot of spreadsheets (xls) in our source code repository. These are usually edited with gnumeric or openoffice.org, and are...

23 Oct at 17:48

Daily Build and SQL Server Changes

Daily Build and SQL Server Changes I am about to try and automate a daily build, which will involve database changes, code generation, and of course a build, commit, and later on a deployment. At the ...

Do you use source control for your database items?

Do you use source control for your database items? I feel that my shop has a hole because we don't have a solid process in place for versioning our database schema changes. We do a lot of backups so w...

1 Mar at 21:20

Git on custom SSH port

Git on custom SSH port My VPS provider recommends that I leave my SSH port to the custom port number they assign it by default (not 22). The thing is, while I know I can provide the port number when c...

19 Dec at 15:2

.vs folder to source control in visual studio 2015?

.vs folder to source control in visual studio 2015? What's the best practice for excluding/including the .vs folder for a VS 2015 solution in source control? After an initial build/edit I only see a ...

What's the difference between git reset --mixed, --soft, and --hard?

What's the difference between git reset --mixed, --soft, and --hard? I'm looking to split a commit up and not sure which reset option to use. I was looking at the page [In plain English, what does "gi...

18 Mar at 10:2

What's the best three-way merge tool?

What's the best three-way merge tool? Subversion, Git, Mercurial and others support three-way merges (combining mine, theirs, and the "base" revision) and support graphical tools to resolve conflicts....

4 Mar at 08:23

Can I force git diff to treat a file as a copy?

Can I force git diff to treat a file as a copy? The diff functionality in git has "copy detection"--if it detects that a new file is actually a (possibly modified) copy of an existing file, the diff o...

20 Apr at 20:53

difference between git merge origin/master and git pull

difference between git merge origin/master and git pull I'm working on a local branch "BDD-local" and would like to get the changes from other developers. The other developers are using their own bran...

30 May at 13:24

Algorithm for Source Control System?

Algorithm for Source Control System? I need to write a simple source control system and wonder what algorithm I would use for file differences? I don't want to look into existing source code due to li...

18 Apr at 06:41

Is there a Github clone in PHP that I can run on my own server?

Is there a Github clone in PHP that I can run on my own server? I know there are plenty of ways to run git on my server, but I quite like the functionality of git with repo browsing - the fact that i ...

22 Aug at 20:32