Questions Tagged [Git]
Ask Question Git Is an Open-Source Distributed Version Control System (Dvcs). Use This Tag for Questions Related to Git Usage and Workflows. Do Not Use the...
Git is an open-source distributed version control system (DVCS). Use this tag for questions related to Git usage and workflows. DO NOT USE the [github] tag for Git-related issues simply because a repository happens to be hosted on GitHub. Also, do not use this tag for general programming questions that happen to involve a Git repository.
142,173
questions
0
votes
0
answers
5
views
Remove old commit preserving changes
I started editing a project downloaded from a glitch repository I played around for a little bit. A lot of automatic commits were done before I downloaded the project and continued editing it locally. ...
0
votes
0
answers
5
views
Jupyter notebook validation error after merging in git with nbdime
I'm merging Jupyter notebooks in git using nbdime version 3.1.1, and I see this:
I'm able to click 'OK' and complete the merge, but any time I open the notebook afterward, I still see this message. ...
0
votes
0
answers
19
views
How to git rebase dev to local to faster forward but with out leaving commits in PR?
So I am working on a feature and the project I am working on has advanced I am expected to rebase to solve merge conflicts and keep my branch up to date until I am ready to merge.
For example, create ...
1
vote
1
answer
27
views
Pushing to git repository to GitHub doesn't work [duplicate]
I've made a SSH-Keygen in cmder and made repository in github to push the project to it, the files have been added correctly, and the commit worked too, but when I tried to push from origin to master ...
1
vote
1
answer
25
views
SSH Key Managment for Multiple Git Accounts
I am trying to create Multiple SSH keys for multiple git accounts. For now, I have one Github account and two Gitlab accounts, I could not find the guide for Multiple accounts across multiple git ...
0
votes
1
answer
14
views
How to update Remote/Origin on another computer after branch renaming
I found a way to update my computer and Remote/Origin branch to match when I rename a branch.
you can imagine renaming branch as:
git checkout oldBranchName
git branch -m renamedBranch
git push ...
0
votes
0
answers
15
views
Visual Studio Detached Branch Rebase in Progress issue
I have seen a few of these posts around but all involve running git commands. So since I do not run git commands I apologize if this is simpler than I think.
We are using Microsoft visual studio team ...
0
votes
0
answers
12
views
Corrupted commit in the far futur
For an unknown reason, my git repository has a commit set into the far futur
commit 1b792e2b9e1a1bfefe92f6802f6dbe9112f750b2
Author: Red Acted <>
Date: Wed Mar 16 12:55:41 ...
2
votes
1
answer
19
views
Move archived repos to a repo?
We have hundreds of archived repos on github which is no longer in use.
There is no option on Github to hide archived repos by default. Currently, it is not user-friendly to go through active repos, ...
0
votes
2
answers
29
views
"head" equivalent in detached head state
Lets say I'm in a detached head state and I run the following command:
git push origin head:something/something/blah
git will output the following error:
So my question is: What is the correct ...
0
votes
1
answer
14
views
gitlab CI - pushing a tag fails
I am trying to push the tag in tagging stage of pipeline,
I have a logic to form a tag and push it back to repo. Now to push the tag, I've created project access token and have below in my gitlab yml. ...
0
votes
0
answers
6
views
How to fix ANSI colors encoding in VSCode Git Log?
I'm trying to run a pre-commit hook that runs lint-staged. When I commit my staged files using Windows PowerShell, I get the following result:
But when I try to commit the files VScode Source Control,...
0
votes
1
answer
20
views
Git .gitconfig and ssh detail problems
I was having problems setting a sshkey for gitlab. It stopped working and it wouldnt work.
Somehow its working now, I didnt modify anything I simply added got a new key and added it. Im trying to ...
0
votes
0
answers
7
views
How to change GIT diff-config on Azure DevOps?
I can ignore GIT file renames on my local machine by adding following line to .git/config
[diff]
renames = false
Is it possible to configure this on the Azure DevOps Repos ? We want to use the ...
0
votes
0
answers
20
views
git init // reset --hard deleted all my desktop files
I'm trying to learn git, I'm new. I got an error while performing a pull from xcode and it was said on the internet that the answer was git reset --hard. I also performed git init and "git reset -...