Questions tagged [version-control]

Version Control are systems that allow users to keep track of file modifications in an efficient manner. Target files are usually source code, and users are generally programmers.

79 questions
78
votes
8 answers

Tips for putting ~ under source control

I want to put my home directory (~) under source control (git, in this case), as I have many setting files (.gitconfig, .gitignore, .emacs, etc.) in there I would like to carry across machines, and having them in Git would make it nice for…
Dan McClain
  • 883
  • 7
  • 7
43
votes
9 answers

Are there pitfalls to putting $HOME in git instead of symlinking dotfiles?

I have for many years had my entire $HOME directory checked into subversion. This has included all my dotfiles and application profiles, many scripts, tools and hacks, my preferred basic home directory structure, not a few oddball projects and a…
Caleb
  • 69,278
  • 18
  • 196
  • 226
26
votes
2 answers

Github adding a repository as a fork from an existing clone

So I have a git repository that I cloned from an upstream source on github. I made a few changes to it (that are uncommitted in the master branch). What I want to do is push my changes onto my github page as a new branch and have github still see it…
Falmarri
  • 12,897
  • 17
  • 58
  • 71
15
votes
1 answer

How shall I understand the unified format of diff output?

From diffutils' manual Next come one or more hunks of diff erences; each hunk shows one area where the files differ. Unified format hunks look like this: @@ from-file-line-numbers to-file-line-numbers…
Tim
  • 98,580
  • 191
  • 570
  • 977
15
votes
3 answers

version control for /etc under *BSD

What turnkey solutions exist to put /etc under version control, under various unices? Turnkey doesn't necessarily mean part of the base install, but the following features would be nice: hooks into VCS commands to manage metadata (ownership,…
Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
14
votes
3 answers

How to know the source repository of a package in debian?

In Debian, AFAIK some packages are maintained in Subversion (famously team-pkg-gnome), while some are maintained in git, and others in some other VCS. Is there a way to know where the source of a package is without doing an apt-get source…
shirish
  • 11,967
  • 27
  • 107
  • 190
12
votes
3 answers

Linux File Versioning?

We are migrating from A VMS environment to a Linux environment for some old alpha servers we are decommissioning. The one challenge I have not been able to overcome is file versioning. VMS keeps multiple copies of the same file by using a version…
DaffyDuc
  • 420
  • 1
  • 3
  • 8
11
votes
4 answers

tool or technique to get a diff of two different linux installations

Albert Einstein quote Insanity: doing the same thing over and over again and expecting different results Often-times, Linux drives me mad because I'm doing the same thing over and over again and getting different results from box to box. (See…
JW01
  • 541
  • 1
  • 6
  • 17
10
votes
3 answers

Change a directory name in a Github repository remotely, directly from local Linux Git?

This is my Git repository: https://github.com/benqzq/ulcwe It has a dir named local and I want to change its name to another name (say, from local to xyz). Changing it through GitHub GUI manually is a nightmare as I have to change the directory…
Arcticooling
  • 1
  • 12
  • 44
  • 103
9
votes
10 answers

Keep a history of all the modifications to a text file

I have a plain text file (not containing source code). I often modify it (adding lines, editing existing lines, or any other possible modification). For any modification, I would like to automatically record: what has been modified (the diff…
BowPark
  • 4,811
  • 12
  • 47
  • 74
9
votes
2 answers

Zsh: consistent history between machines

Use case: distribute zsh's history between machines in source control. Is that something that I can achieve with zsh's history -- put history in version control the sync between machines? This is to avoid re-typing commands and quick trace.
Tuyen Pham
  • 1,765
  • 1
  • 16
  • 46
9
votes
3 answers

Good introduction to Subversion for inexperienced users?

Can you suggest a good introduction to Subversion for UNIX (or Mac OS X) users? It can assume familiarity with basic command-line usage, but not any advanced topics (with bash scripting counting as "advanced usage" here...) Ideally, the guide…
Riccardo Murri
  • 16,238
  • 4
  • 56
  • 46
8
votes
1 answer

Git - handle symlink as if it was a file

Is there a way to make git handle a symlink as if it was a file. If I just normally add a symlink like git add symlink, git just stores/controlls the path to the file, not the linked file. Is it possible to make git handle a symlink as if it was the…
nath
  • 5,430
  • 9
  • 45
  • 87
7
votes
2 answers

Is it possible to store user's crontab in user's git repository on OpenBSD?

On OpenBSD and with OpenBSD's cron and crontab, is it possible to store the crontab(5) of a user in a git repository of the same user? What would be the proper way to accomplish something like this? (To steer the answer into the correct direction, I…
cnst
  • 3,223
  • 2
  • 23
  • 44
6
votes
1 answer

Subversion: how to determine when files became corrupt

I'm using Subversion just for private synchronization between a laptop and a desktop. Recently I discovered that several ASCII files and several binary files were corrupted. Instead of the expected contents, a long series of file names and directory…
ioctlvoid
  • 451
  • 5
  • 13
1
2 3 4 5 6