Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
24 views

How can I use for example SourceTree with a remote repository?

I've a server with a folder. In this folder I've did a git init to create a git repository in this folder. When I open now a file in this folder and change something, the git notices this and mark it ...
1
vote
0answers
58 views

How do I maintain a patched version of a package for unprivileged installation?

I use some common software packages frequently enough that I found it worthwhile to modify their code a bit to work more smoothly for my peculiar needs. However, I was not able to get my changes ...
0
votes
3answers
284 views

What is the difference between apt, apt-get and git?

I use Xubuntu and found that I can update packages by using apt and apt-get. But I have heard that programmers use usually git in their project to manage different version. So why Xubuntu do not use ...
1
vote
1answer
28 views

Patch only a portion of a file

I have two files - fileWithMyFix.c and fileCustUpdated.c. I made my fixes to filewithmyfix but was not aware that a customer was updating the same file to make other (unrelated changes). I need to ...
1
vote
0answers
32 views

How shall I understand the different outputs by `-A` and by `-e` of diff3?

diffutils' manual says, in diff3 -A mine older yours The ‘--show-all’ (‘-A’) option acts like the ‘-e’ option, except that it brackets conflicts, and it outputs all changes from older to yours, not ...
-3
votes
2answers
89 views

What do comm and diff try to accomplish at input/output level?

Given two files, for each line in each file, how do comm and diff determine whether the line also occur in the other file? if it does, whether its occurrences in the two files are the same or ...
0
votes
1answer
314 views

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-...
3
votes
1answer
84 views

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 mahcines? This is to ...
2
votes
3answers
224 views

Is `help` commonly invoking sccs help in some Unix flavors?

In another thread I was cockily saying that any program [which is not part of the OS user interface, like a shell] with names like exit, test or help is stupid. I meant to imply that such common names ...
1
vote
3answers
55 views

How to find which author and committer has done more commits to a project using git log?

I have been browsing Git Basics - Viewing the Commit History as well as Git Tools - Searching and while most of the ways seem straight-forward I have been trying to figure out if there was a way to ...
0
votes
0answers
35 views

Automated way to periodically move files of a specific file-extension to cloud folder (mounted as local directory)

I am currently working on a large project (Phd thesis) using git for version control. My source files are processed by latex which are just plain-text, naturally suited to version control. The ...
10
votes
3answers
5k views

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 ...
0
votes
2answers
112 views

Track /etc/nixos/result in VCS?

While one can rollback NixOS build generations easily, this won't give back the corresponding NixOS configuration in /etc/nixos/configuration.nix. Thus, it seems to be common to track /etc/nixos/ in a ...
0
votes
2answers
73 views

Version Control System

In our company we use Subversion for version control system. Now if there is a folder of 10GB in the server and 4 users are working in the project, then during checkout it will accumlate 40GB's of ...
0
votes
1answer
23 views

Is it possible to view changes of permissions by comparing files to a backup?

I'm running Debian 9.1 with KDE and used BackInTime (which uses rsync) to backup my files. Now I would like to create a changelog / diff of changes to permissions of files. I'd like know this for two ...
0
votes
2answers
394 views

How can I view diffs or at least older versions of specific files with etckeeper?

So I'm using etckeeper on my machine running Debian 9.1 with KDE and would like to view diffs (or if that isn't yet implemented: past versions) of specific files. How can I do that?
1
vote
0answers
44 views

Tracking Changes and Development for Embedded Linux

I'm starting to develop on an embedded linux system and am trying to figure out what the best way to manage my work is. Currently I'm using buildroot to build an image based on the vendors defconfig, ...
1
vote
1answer
45 views

What is the origin of multi-line change log entries?

Being able to dig into software history and find a proper justification for the code is great. I think I first saw these in Linux patches - pre-source control. Obviously when Git was written, it ...
1
vote
1answer
76 views

How to make hacked files in Subversion repository editable again?

I'm investigating some files in a website which were hacked and the site is under version control in a Subversion repository, but it doesn't show the files as being modified. How do I stop SVN from ...
4
votes
1answer
473 views

tar is not obeying --exclude-vcs

I am trying to create an archive as: tar -Jcvf shadow-2.7.1.tar.xz shadow/ --exclude-vcs and I am expecting no .git folder. But vi shadow-2.7.1.tar.xz yeilds ... shadow/.git/ shadow/.git/index ...
2
votes
2answers
391 views

How to use Git merge drivers with Jenkins

I recently searched for a way to merge pom.xml-s automatically with Git merge driver. Got it working locally, but now I'd like to add this solution to Jenkins -- no luck so far. What I did: 1) I ...
3
votes
2answers
58 views

git: how to add one file as a version of another?

I have a bash script that I've written during the course of the last week. Today, I've decided to finally give git a try before making any further changes, created a git repository, etc. The script ...
1
vote
0answers
686 views

GUI for Subversion on Raspberry Pi

Windows has a very good lightweight tool called TortoiseSVN, which provides a simple but effective GUI for controlling SVN repositories. In Ubuntu there is a similar one called RabbitVCS. What GUI ...
1
vote
0answers
900 views

What is return code 1 for git-rebase? What are other values it could return?

I've got a script that takes changes from master and applies them to all branches. The script works well for us because we tag our releases and use dev-branches. We don't maintain a separate branch ...
2
votes
2answers
454 views

Test if any RCS-controlled files in tree are not checked in

I have multiple project trees of legacy code that are using RCS for version control with multiple users. I'd like to be able to walk the tree and test if any files are checked out (and thus the tree ...
1
vote
0answers
269 views

RabbitVCS issue on Mint 17 XFCE

Is there a working package of RabbitVCS for Linux Mint 17.3 XFCE Thunar FM 32 bit? Following ubuntu section on rabbitvcs wiki, I've gone through the PPA repository option (rabbitvcs-thunar, rabbitvcs-...
2
votes
1answer
407 views

How to find a specific patch for a kernel file

I've been debugging an issue in my linux kernel and have found a fix for the issue. Checking cross reference, I can see that the fix was applied to that file between kernel version A and kernel ...
0
votes
1answer
136 views

diffing two version of software,and do the interdiff

I have got some kind of software in version 1.2.0 (lets call it 120), my colleagues made changes in this software (they created custom module for this software by changing source code of software) ...
5
votes
2answers
730 views

Create the same PNG with ImageMagick 2 times: Binaries differ

I create two images that should be identical, but their binaries are different: $ convert -size 1x1 xc:white out1/w.png $ sleep 1 $ convert -size 1x1 xc:white out2/w.png $ diff out1/w.png out2/w.png ...
2
votes
0answers
98 views

How do I know when what I should store in my external to /etc configurations in etckeeper?

I read about the ability to store configuration files that live outside of /etc here, and I tested it out on a test server, and it appears to work. One thing that I'm having a bit of an issue with ...
2
votes
2answers
217 views

using git to version-control any file edited with my text editor

Is there any way to integrate text editor (joe in my case) with git in such a way, that every change to any file is automatically committed in git (probably with a time stamp), so that I can always go ...
5
votes
2answers
2k views

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? ...
8
votes
4answers
1k views

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 ...
1
vote
1answer
301 views

How to un-commit a file in git?

I have did git commit <file> for a file and also submitted that file with git submit <file>. but now i want to un-commit the changes. i have also tried git reset HEAD~1 <file> ...
0
votes
1answer
406 views

Fix version issues of Python on CentOS 6.6

I installed python 2.7.9 under a users directory on centOS 6.6 and then installed virtualenv and set up a project. Now the issue is, the system is using python 2.7.9 while the virtual environment is ...
1
vote
2answers
694 views

What is advantage of backing up a filesystem by version control software?

Version control software seems to be used for backing up project mostly in plain text files. For backing up a file system, with large amount of files or large size, regular file copying/transferring ...
6
votes
1answer
1k views

git: show which files have changed between kernel 3.18.6 and 3.18.7

I have checked out linux kernel git repository git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git I know how to use git log, git show and similar commands to see changes/...
1
vote
1answer
82 views

symlinking to `.rbenv/`: how much is too much?

I've been keeping most of my dotfiles in a git repo and symlinking to them, e.g. ln -s ~/Development/dotfiles/bash_profile ~/.bash_profile which has been great. I did something similar with .vim/ ...
0
votes
0answers
356 views

Teach tripwire or AIDE about renamed files

In my /etc directory there is something I do with files. Let us say that I am looking at /etc/passwd. What I do when it will be modified is to copy it over, in the following sense. I have a hierarchy ...
-2
votes
1answer
27 views

Which editor (or plugin) makes a version control workflow feel most first-class? [closed]

By "first class" I can just work by forking and merging my code willy-nilly, several times every minute, without ever thinking about the VCS.... I'm looking for an editor environment where the most ...
2
votes
0answers
33 views

Logging and controlling changes to the system [duplicate]

I am looking for an advice on a very lightweight local server or option for version of control of system administration changes. We have few secure Ubuntu servers that are not on the network, but we ...
1
vote
2answers
51 views

How to execute a program when a text file is called and still return the proper text

The question is fairly simple. I want to create a program that would hook the VFS and run the program in order to generate or read the data that would be create. I.E.: the file itself would hold all ...
0
votes
1answer
814 views

unable to create SCCS file

I am working on Ubuntu13.04. I created a file named quit.c I am trying check-in this file in to its SCCS file, s.quit.c I am creating the SCCS file as below using admin command: ravbholua@ravbholua-...
0
votes
1answer
58 views

Saving source code from the internet

How can I save all the documents from this adress to my PC? https://svn.linuxsampler.org/svn/liblscp/trunk/ This is a package I need to build "Open Octave DAW" from source.
1
vote
3answers
164 views

How to use git for this particular purpose?

Here is the situation. There are two machines, laptop A and workstation B. B has a fixed IP, A has a dynamic IP, and I want to avoid the need of connecting from B to A (setting up an ssh tunnel for ...
6
votes
1answer
1k views

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 ...
2
votes
4answers
267 views

Is there a structured format of version info for OS-level executables?

I am looking for a structured format of version info for OS-level executables, such as in /usr/bin and /usr/local/bin. The problem we are having is the inconsistent architecture between our PROD and ...
2
votes
2answers
40 views

Putting a warning flag on a particular version

I have 4 versions of a file 1.21, 1.22, 1.23 and 1.24. After a month of time I came to know that the version 1.22 and 1.23 have some errors in them. Now I don't want anyone to use those versions. One ...
39
votes
8answers
7k views

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 ...
3
votes
2answers
1k views

How to change file permissions for newly generated files in largefiles directory of Mercurial?

I got some Mercurial repositories which are served by Apache over HTTP. But there is a dedicated user performing some automated tests, which needs to check out the repositories locally. Recently this ...