Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
238 views

Is Git hiding files on my computer?

I've accidentally created two branches for my Git repository: main and master, which I now need to merge. However, when using ls on the command line while checked into main branch, some files on my ...
pilks7's user avatar
  • 9
1 vote
2 answers
2k views

Self update bash script if there are any updates first then continue on, with Git

I'm trying to add the ability for my ArchLinux installer script to check if it's update-to-date based on rather it matches (or doesn't match) the version number that's on gitlab. The primary script ...
Nova Leary's user avatar
2 votes
2 answers
216 views

What is the equivalent of "git status", "svn status", and "cvs status" for RCS?

Is there an RCS command similar to git status, svn status, and cvs status that can show the status of each file within a directory? For example, if a file has been modified since the last check-in, ...
Flux's user avatar
  • 2,958
2 votes
1 answer
170 views

How to change the version number of a revision in RCS

Suppose a file has 4 revisions (1.1 to 1.4). I deleted revisions 1.2 and 1.3 using rcs -o1.2:1.3 myfile.txt. Now I want to change revision number 1.4 to become revision number 1.2. How do I do this ...
Flux's user avatar
  • 2,958
0 votes
1 answer
96 views

Why is the rcsfreeze command missing from an installation of RCS?

I have installed RCS in Ubuntu 20.04 using sudo apt-get install rcs. The usual RCS commands such as ci, co, rlog, rcsdiff, rcsclean, etc. work as expected. However, rcsfreeze is missing. When I try to ...
Flux's user avatar
  • 2,958
1 vote
0 answers
1k views

How to store credentials for multiple Github accounts (not individual repos) using libsecret

I'm trying to use 2 github accounts on Ubuntu 18.04. I'm also using personal-access-tokens (PAT). Following the setup I'm trying to achieve. Have 2 github accounts - main and work on the same pc. All ...
theairbend3r's user avatar
1 vote
1 answer
58 views

How can I count how many times a shell script is run (for local conan versioning)?

I'm looking for a way to do version control on my conan package, locally (note that I'm new to conan and usually the reference used by my working place is the CI_PIPELINE_IID). I was thinking of doing ...
lbonvieuchum's user avatar
2 votes
1 answer
366 views

How to add revision control to a Linux OS installation

I have an SD card image of an Armbian based Linux system. I have done several modifications at different places to this system and I'm looking for a solution to add some versioning information to this ...
Kampi's user avatar
  • 163
6 votes
1 answer
1k views

What is the right way to store BitBake configuration under git?

What is correct way to keep track of bitbake configuration and used layers in git?
senx's user avatar
  • 171
3 votes
2 answers
713 views

Is there any git option to automatically merge commits from master branch into a feature branch?

I have a feature branch in git that needs to be up to date with the master branch at all times. Is there any way to automatize this in git? I basically want on every commit in master branch a merge ...
fluffehStack's user avatar
0 votes
1 answer
172 views

how to fetch the remote repository of a remote repository which is not checked out in git

Is there a way to fetch the remote repository of a non-checked-out remote repository with git? I have the dotfiles on my remote PC under version control (using yadm). This repository is cloned on my ...
n0542344's user avatar
  • 396
0 votes
1 answer
354 views

Version Control for Packages in Linux - Red Hat Enterprise linux

We have RHEL - Red Hat Enterprise Linux Servers (VMs) in a typical 3 tier landscape ie - Sandbox/Dev, Quality and Prod. During the initial build of the servers back in early 2018, I created the ...
SiddJayy's user avatar
9 votes
10 answers
5k views

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 ...
BowPark's user avatar
  • 4,925
2 votes
0 answers
417 views

User defined functions in zsh prompt

I'm trying to use a functions that returns the number of commits in a given branch in the zsh prompt. This is what I have now: setopt PROMPT_SUBST autoload -Uz vcs_info precmd() { vcs_info } zstyle ':...
noibe's user avatar
  • 387
8 votes
1 answer
6k views

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 ...
nath's user avatar
  • 5,784
0 votes
1 answer
2k views

Update Centos without upgrading kernel or OS

I tried to find answers to this issue but I am having a hard time to find the right keywords. So here is my issue. Dongled mini PC with some itchy software when it comes to patching the system. Is it ...
Jan S's user avatar
  • 57
5 votes
0 answers
2k 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 ...
Mr. Jo's user avatar
  • 203
1 vote
0 answers
90 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 ...
Metamorphic's user avatar
  • 1,189
0 votes
3 answers
4k 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 ...
Verybeginner's user avatar
0 votes
1 answer
931 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 ...
Brydon Gibson's user avatar
2 votes
1 answer
113 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 ...
Tim's user avatar
  • 103k
-3 votes
2 answers
237 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 ...
Tim's user avatar
  • 103k
16 votes
1 answer
20k 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-...
Tim's user avatar
  • 103k
9 votes
2 answers
1k 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 machines? This is to ...
raring-coffee20's user avatar
3 votes
3 answers
575 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 ...
Peter - Reinstate Monica's user avatar
2 votes
3 answers
1k 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 ...
shirish's user avatar
  • 12.5k
0 votes
0 answers
222 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 ...
Dr Krishnakumar Gopalakrishnan's user avatar
10 votes
3 answers
15k 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 ...
Arcticooling's user avatar
0 votes
2 answers
376 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 ...
das-g's user avatar
  • 439
0 votes
2 answers
111 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 ...
Anton Kewin's user avatar
0 votes
1 answer
63 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 ...
mYnDstrEAm's user avatar
  • 4,350
1 vote
2 answers
3k 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?
mYnDstrEAm's user avatar
  • 4,350
1 vote
0 answers
78 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, ...
Otus's user avatar
  • 131
1 vote
1 answer
96 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 ...
sourcejedi's user avatar
  • 50.8k
1 vote
1 answer
314 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 ...
morgant's user avatar
  • 111
4 votes
1 answer
2k 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 ...
BaRud's user avatar
  • 1,639
2 votes
2 answers
634 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 ...
user212154's user avatar
2 votes
2 answers
306 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 ...
Max's user avatar
  • 85
1 vote
0 answers
1k 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 ...
davidhood2's user avatar
3 votes
0 answers
2k 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 ...
user avatar
2 votes
2 answers
1k 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 ...
Torfey's user avatar
  • 23
1 vote
0 answers
353 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-...
capum's user avatar
  • 21
2 votes
1 answer
2k 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 ...
zeus_masta_funk's user avatar
0 votes
1 answer
210 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) ...
Krystian's user avatar
  • 135
6 votes
3 answers
1k 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 ...
Nicolas Raoul's user avatar
2 votes
0 answers
137 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 ...
leeand00's user avatar
  • 4,625
1 vote
2 answers
247 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 ...
Martin Vegter's user avatar
7 votes
2 answers
5k 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? ...
cnst's user avatar
  • 3,283
14 votes
3 answers
4k 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 ...
shirish's user avatar
  • 12.5k
1 vote
1 answer
816 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> ...
Sanjay Yadav's user avatar