Questions tagged [version-control]

Version control is the management of changes to documents, programs, and other information stored as computer files. Use this tag to mark general questions about usage and applicability of version control, VCS comparison. For most commands and techniques specific to each particular VCS there are specific tags, which should be preferred.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
9 views

I merged `main` into my branch while working and then did a rebase to reword a commit but GitHub Pull Request is showing wrong file changes

The Steps I took To give you an idea of what's done so that you understand where did I go wrong: I wanted to implement feature abc so I have pulled everything and I'm on main branch. Then I use git ...
M.A Shahbazi's user avatar
0 votes
0 answers
9 views

Why does my Jupyter Notebook file display no contents when opened in Github or JupyterLite?

I'm very new to coding. I created an .ipynb file for a learning mod using VScode, which has its own version control. When I try to upload the Notebook to Github or JupyterLite, it shows up as a blank ...
Catdog's user avatar
  • 1
0 votes
0 answers
21 views

git squash all commits till specified date into one Commit

I need to squash all commits, want all commit till a specific date to be in a single commit, how can we do that? So that if I've below commits: commit_id Commit msg commit date abcd My Commit 4 2023-...
DilLip_Chowdary's user avatar
0 votes
1 answer
24 views

MissingMethodException: No signature of method: p.call() when configuring Jenkins Pipeline script from SCM that targets Scripted Pipeline Jenkinsfile

I have written a Scripted Pipeline in Jenkins that executes correctly when I choose the "Pipeline script" option and paste the text directly into the Job. We need to use a Scripted Pipeline ...
RobbieDixonBr-dge's user avatar
0 votes
0 answers
5 views

How to complete the dssc checkout.?

I am running a command and it asks me to enter comment. It hangs when i enter a comment. Can someone help you how to proceed? dssc co -lock Enter a check-out log message to describe your ...
rizzz's user avatar
  • 1
0 votes
0 answers
19 views

Merging git submodule inside main repository with LFS objects

I am looking in how can I merge existing submodule to my main repository. Basically currently my repository looks somehing like this ├── example1.java ├── example2.java ├── img | └── image.jpg └── ...
Ghorio Fuitton's user avatar
0 votes
0 answers
68 views

What is issue/feature 150 in Parsec?

I am looking through the parsec github repository (currently at version 3.1.16.1) on the master branch. As of the time of writing this, the latest commit on master has commit id ...
Peter Bergman's user avatar
-1 votes
1 answer
16 views

Version control on a removable USB drive

For my school work, I do a lot of switching computers (from labs to my laptop to the library). I'd kind of like to put this code under some kind of version control. Of course the problem is that I can'...
Usmon Abdurakhmanov's user avatar
-1 votes
1 answer
35 views

Should i push a solution or a project to github? [closed]

i am studying dot-net core and i started with visual studio, when creating a new project visual studio creates a solution and a project inside this solution. adding my code base to GitHub adds the ...
victorien sukarieh's user avatar
0 votes
0 answers
11 views

How to stop .NET runtime generate lower version of nuget packages explicitly?

I am using System.Diagnostics.PerformanceCounter version 7.0.0 in .NET6. While running my application why does it generate version 4.7 along with 7.0 in the nuget cache folder? It is mentioned in ...
Sounava Pal's user avatar
0 votes
0 answers
15 views

How to check difference between the new and old google cloud function versions in Firebase? [duplicate]

One of my team members deployed a cloud function on April 2nd (version 35), previous version(34) was deployed on March 15th. How can we see what was changed in the version 35 compared to the version ...
reactjs's user avatar
  • 112
0 votes
1 answer
47 views

files version control 'without push'

Is there a way to version control (large) files, by keeping them locally? (my 'local', is actually on cloud) (and show for instance on Github/lab only the commits -- like, by keeping only the ...
jjrr's user avatar
  • 1,016
0 votes
1 answer
25 views

Move GIT including their branchs and tags from A to B

I have a project that use 2 different git. Both of them are the same app and what different it is a version & language. Consider Folder_1 directory is Version_1 project and Folder_2 directory is ...
khai's user avatar
  • 75
-2 votes
0 answers
21 views

Tool to health sanitize a Git repository on TFS

At my company, we work with Git, with Azure DevOps being the client. We are looking for a tool to help us sanitize our repositories' health. For example, we want to enforce that a label with a ...
Fábio Pires's user avatar
-2 votes
1 answer
61 views

laravel .env file changed into .env.example when we push on github

Does Git or Github automatically change .env file to .env.example in Laravel? I just uploaded my project on Github and my .env file converted into .env.example, so I just want to understand what is ...
Utkarsh Shukla's user avatar
1 vote
1 answer
41 views

Can git cherry picking last commit from throw-away branch damage the history in branch where data will be moved to?

I've read about the unwanted side effects of cherry picking in regards to git history and ability to merge. However all examples I've come across assume that the branch, where a commit is cherry ...
rbaleksandar's user avatar
  • 8,491
-1 votes
1 answer
61 views

How to programmatically read and update a csv file stored in a Github repo?

I have a csv file stored in a Github repo. I'm reading the data from that csv inside a streamlit app, then based on interactions in the app, want to push the new data to the same csv file stored in ...
Ayan's user avatar
  • 33
0 votes
0 answers
17 views

Why it is showing "no repository found" in vs-code (using CLI for github), into my project?

I am making a front-end of a project for an organization. The organization has a very first project related to a software, so they created a GitHub organization account, where they created the GitHub ...
Himanshu Sharma's user avatar
4 votes
0 answers
48 views

Version control for objects in R workspace?

At a minimum I would like to document objects in the R workspace - when they were created and/or when they were last updated. Even better, it would be great to document any executed code that modifies ...
AdamO's user avatar
  • 4,198
0 votes
0 answers
11 views

Re-do versioning of a small project?

I am working on a project which will be released to a larger team but so far I'm the main person working on it. I'm consulting with one or two other people who have pulled the code but I'm the only ...
Jagerber48's user avatar
1 vote
0 answers
25 views

splitting single file into multipe files on git commit, and merging them again on git checkout

A proprietary industry sensor configuration software stores various settings in about 500 XML files. Multiple developers have to edit these settings (using that software). I want to use git version ...
HugoRune's user avatar
  • 13k
0 votes
0 answers
38 views

Trying to fetch a raw file from bitbucket private repository using access token

Im trying to fetch a raw VERSION file from a repository for a CD solution. I created a Repository Access Token with Repository: Read permission, as documented here Using cURL, curl https://api....
BUCKSHOT's user avatar
0 votes
0 answers
16 views

How do I fetch additional history in a git-svn clone?

I've already done git svn clone to create a repo. It has one year of history. I want to extend how far back my history goes. How can I do that? I tried using fetch with my start revision, but it did ...
idbrii's user avatar
  • 10.8k
0 votes
0 answers
18 views

How should I set git's autocrlf on a git-svn repository?

How can I safely configure git-svn so I don't unintentionally change line endings when dcommitting to svn? I'm currently using git's autocrlf=false and Unix file shows a mix of line endings: > file ...
idbrii's user avatar
  • 10.8k
0 votes
2 answers
48 views

Version controlling software between products

I ran into an argument with a colleague about how we should do version control of our software, and I would like some input on what's the best way to do things. We are making software for larger ...
SlimeyBadger102's user avatar
4 votes
1 answer
81 views

What is the most efficient way to find common ancestors on a large remote GitHub repository?

Methods that I have explored: So, there are dozens of ways to interact with a GitHub repository. Methods include Github GraphQL, GitHub REST API, git clone/fetch-ing, and interacting with the Github's ...
DaMaxContent's user avatar
0 votes
3 answers
69 views

Why isn't there one merged button ' GIT commit+push' in IDEA2018 of JetBrain?

I am searching for a version control button 'Git Commit+Push' in Jetbrain IDEA 2018. But there is only a 'Git Push' button, a 'Git Commit' button as they are two separate buttons,but it seems not too ...
James Wang's user avatar
2 votes
0 answers
34 views

Unexpected behavior with inactive Changelists in CLion 2023.1.1

I am evaluating CLion 2023.1.1, Build #CL-231.8109.222, on Fedora 38 (GNOME). According to JetBrains' documentation of the active Changelist, "all new changes will be automatically placed in this ...
Jabberwocky's user avatar
0 votes
0 answers
12 views

Bit Bucket Pull request merge issue

we are storing our source code in bit bucket and using jenkins as our CI/CI we do have a restriction for merging PR which is (if a build gets failed it shouldn't get merged) Suppose if we create a PR ...
Arun Babu's user avatar
0 votes
1 answer
9 views

what django supported database is best for representing trees or revision history?

I want to avoid representing a version control system for AI models in my postgres DB through django. What NoSQL DB can represent a tree structure and has a Django library?
merhoo's user avatar
  • 559
0 votes
2 answers
30 views

Migrating from TFVC to GitHub for large SQL solution

The team I work in is currently migrating from TFVC to GitHub for a large database solution. When making changes to either code, objects or SSIS packages in TFVC from Visual Studio, they appear "...
SQLBen2020's user avatar
0 votes
1 answer
43 views

Version Control on Visual Basic Internal Web App

I work on an internal web app in visual studio that is a visual basic project. This web app is used in a facility and is going to be scaled larger for other facilities. I am looking for the best way ...
nick's user avatar
  • 1
0 votes
2 answers
22 views

P4ignore ignore changes, but allow adds and deletes

I have bumped into an extreme edge case. I need to have an Ableton project in our perforce, and Ableton does not have any kind of source control integration. For the project to function correctly, we ...
Professional social outcast's user avatar
0 votes
0 answers
17 views

Tortoise SVN: How to visually discern non-head files?

Subversion in combination with TortoiseSVN: Quite often, I have to checkout some of my files at a previous revision, i. e. not the head revision. Sometimes single files, sometimes whole directories. ...
AchimInternet123's user avatar
1 vote
1 answer
65 views

Which version of SageMath was I using? In 2018 that allowed this code to run?

At some point the code bellow was working but now I need to replace the map line with something else. I'm wondering what version of SageMath I was using that my code was working. It may have been ...
Michael Hearn's user avatar
-1 votes
1 answer
62 views

Git merging a directory from a branch of one repository to the branch of another repository

I have a two Git repositories REPO-A and REPO-B. REPO-A have --> BRANCH-A , and BRANCH-A have following directories DirA, DirB, DirC REPO-B have ---> BRANCH-B, and BRANCH-B have following ...
Ash's user avatar
  • 1
0 votes
0 answers
76 views

Gradle - Could not resolve org.springframework.boot:spring-boot-starter-web:[2.7.10,)

I am trying to use gradle's Version Range Matchers as so: implementation 'org.springframework.boot:spring-boot-starter-web:[2.7.10,)' But for some reason getting this error: Could not resolve org....
Tom Carmi's user avatar
  • 366
0 votes
1 answer
36 views

How do I not commit my file changes while keeping it in the repository? [duplicate]

I am working in a shared git repository. In our project, we have a configuration.json file that holds information to some parameters for the project. Sometimes when I am working on my local repository,...
Ken's user avatar
  • 39
2 votes
1 answer
19 views

setup github bot to report security vulnerabilities for all repos i have access to

I am trying to setup a security scanner/bot in github. Its main responsibility is to scan all files to see if there is any secrets typed in frree text instead of using git secrets. I want to do it in ...
WPFKK's user avatar
  • 1,409
0 votes
1 answer
33 views

Why is version number 0.10.0 considered as older than 0.9.0 in setuptools_scm?

I have a Python package that is going through frequent changes and it brought us to version 0.9.3 currently. My team is not confident to bump it to 1.0.0 yet. The team agreed to version number 0.10.0 ...
yuenherny's user avatar
  • 136
0 votes
0 answers
83 views

could not read password error while trying to git pull from jenkins using execute shell script on remote hosts

I have my code on bitbucket and for the continuous integration part am using jenkins, when i try to execute shell script using git pull command its giving me error fatal: could not read Password for '...
Bala's user avatar
  • 1
0 votes
1 answer
78 views

Github - How do I go back to a commit which is 3 pull requests in the past and then restore the main branch as to that commit

I want to be able to restore the main branch to a commit, as how is was 3 merges before. Also, although its not really important, I would like to keep all the changes that were done after that commit (...
tendaitakas's user avatar
0 votes
1 answer
50 views

git remove single line from file in git history

I accidentally committed a line of code that was not meant to be part of the commit. class Engine { x: X protected _events: Event // <-- this line was accidentally included y: Y the ...
Michael Moreno's user avatar
-1 votes
1 answer
25 views

How to update submodule to a specific commit from a repo without branch name?

While working with git submodules I had a though to update the submodule by providing only the submodule repository URL and commit id ( Commit id could be present in any branch of the submodule ...
KLAS R's user avatar
  • 54
0 votes
1 answer
55 views

How to keep a small section of a file in sync with upstream?

I'm building something off of a third-party application (in Typescript) that wasn't designed to be modular. I'm looking to extract a small set of functions from this project; in a subsequent pass I ...
D0SBoots's user avatar
  • 695
0 votes
1 answer
71 views

git log --grep: search in the range from HEAD to the last (arbitrary) branch name

I'm currently using Git as part of a tool in which I need to mark some Git repository changes. Therefore, I create some "marker commits". Now, I want to know how to efficiently find those ...
gerion's user avatar
  • 345
1 vote
1 answer
45 views

find point where two branches in git FIRST diverged

This is slightly simplified from the real story, but hopefully close enough. Suppose I initially have one branch: develop. Then I create a new branch: release. At this point, release and develop both ...
Mark VY's user avatar
  • 1,449
1 vote
2 answers
32 views

My main branch is wrong and I want to rewrite it with another branch, how can I do something like this?

The main branch of my remote repository(github) is totally wrong, I have pushed the good code to another branch named kitos which is quite different from the main code. I want to "delete" ...
Dani Cruz's user avatar
0 votes
1 answer
26 views

Git refer to future commit in past commit message

A change involved both restructuring file locations and modifying file content. Following the advice of this answer to ensure that git interprets my git mv changes as rename rather than delete/create, ...
Michael Moreno's user avatar
1 vote
0 answers
34 views

Git pushed multiple files, but one was too large. Now git status states "Your branch is ahead of 'origin/main' by 1 commit", but this can't be reset

TLDR: I found a solution here -> Remove file from latest commit I would like git status to display "Your branch is up to date with 'origin/all_work'" Since I cannot achieve this, I cannot ...
KCB's user avatar
  • 7

1
2 3 4 5
341