153,227
questions
1
vote
0
answers
15
views
Git: How should I show only commits that declare a specific footer?
Reading through this question about extracting footers from commits, the answer left something to be desired for my specific use case. Using the suggested command (git log --format="%h %s %(...
0
votes
0
answers
15
views
How to reduce storage space in Git LFS
I am having problems with storing data in Git LFS. Previously I used LFS to manage large files in projects. But now the repository is full and I can't push anywhere.
Because I can't push to the repo, ...
-1
votes
1
answer
24
views
what are proper steps for adding git tag to a commit in bash?
I need to start adding a tag to my commits... I use bash shell. what is the proper sequence
I did it like this:
git tag <verbiage>
git commit <verbiage>
Is this correct?
0
votes
0
answers
8
views
VS Code incoming/outgoing changes disapeared from source control tab
Recently (like around 2 weeks ago), something changed in VS Code and now I don't see incoming/outgoing changes. I tried searching for the solution, but it seems there were new updates and most of the ...
-1
votes
0
answers
16
views
Check and change the git diff viewer [duplicate]
When you run git diff on most systems, the viewer seems to be more, i.e. the diff stays in the terminal after exiting. On a system I'm on it seems like less is the default. My ~/.gitconfig currently ...
-4
votes
0
answers
22
views
How to correctly fork a git repo?
I recently started to work on an open source project, I created a fork of the repo to my user and start playing with it someho, i noticed that the origin was pointing to my fork and the upstream to ...
-3
votes
0
answers
36
views
What are the pros/cons of having multiple PRs/merges (to develop) on a single feature branch? [closed]
The team I am working with frequently create a feature branch, do some work on it, create a PR and merge this feature branch back to develop, do some more work on it, do another PR and merge it back ...
-3
votes
0
answers
23
views
How do I show the git branch with colours in Bash prompt?
How do I show the git branch with colours in Bash prompt?
See Ask Ubuntu
in Ubuntu
sudo nano ~/.bashrc
find this strings in .bashrc
if [ "$color_prompt" = yes ]; then
PS1='${...
-1
votes
0
answers
19
views
Automatic merge failed; fix conflicts and then commit the result
Files have unresolved conflicts.
Using PyCharm and trying to commit changes, but there are unresolved conflicts.
git merge --abort didn't help.
When trying to commit get this:
Cannot commit changes ...
1
vote
1
answer
39
views
Is there any way to get a mapping of old and new commit hashes after `git rebase`?
When using git rebase to rebase a chain of commits onto a new destination, is there any way to generate a mapping from the original commit hashes to new commit hashes when such a correspondence exists?...
0
votes
1
answer
31
views
How do we pull code into local main branch without having to commit the local changes afterwards?
I made some pull requests to a project I'm working on. The owner of the project decided he wanted to create a new version release before merging my updates and he closed the previous pull requests. ...
-1
votes
0
answers
20
views
Branch still pushing from old account
I needed to switch github accounts to push something to a company github account. I tried to change to my new username but constantly get rejected.
remote: Permission to Company/project.git denied ...
0
votes
0
answers
27
views
fatal: unable to access url, The requested url returned 502
Im trying do my own git server using git http backend. Im doing all of this using nginx and fcgiwrap. Im also using docker container not just host machine. So my nginx configuration looks like this:
...
0
votes
1
answer
18
views
MDriven Framework file Modlr.config - can it be ignored from git?
Using MDriven Framework, can we safely ignore modlr.config from git? It seems to be modified whenever I even just open the model editor, without changing anything. Does it contain anything that's ...
0
votes
1
answer
43
views
Cannot see full commit message in git commit log
When I look at the git commit log in VS Code under SOURCE CONTROL, it only shows the first line (aka subject) of each commit. As I tend to write detailed commit messages, it feels awkward that I ...
-4
votes
0
answers
54
views
Why do some "merges" not show the "Merge: commit1 commit2" line in the log? [closed]
When you do git log on a particular branch (e.g. develop), it looks like this:
commit 4499a58980e6ca8b140bf07665f47cca5f9036d8
Author: Axx <Axxor.com>
Date: Wed Sep 4 02:13:40 2024 +0100
...
-3
votes
0
answers
30
views
add new branch with changes to github [closed]
I want to create a new branch from the Dev branch and apply the changes I made to the new branch.
git checkout dev
git checkout -b new-branch-name
git add.
git commit -m "commit message ...
0
votes
1
answer
39
views
Multiple users successfully authenticated, but SSH keys not working on Windows 11
I'm trying to set multiple GitHub accounts for multiple projects I'm working on. It just won't work.
First of all, I'm on Windows 11.
I've created the keys, they're in C:/Users/User/.ssh/...
I ...
-7
votes
0
answers
56
views
If a git commit is a "snapshot", rather than a diff, how can cherry pick work? [duplicate]
Our develop branch has had many feature branches merged in via PR. It also has one feature branch feature/A merged in with one change to file A merged via PR.
If I try to create a PR for feature/A for ...
-1
votes
1
answer
28
views
Can I use symbolic link to .gitlab-ci.yml?
Now my project looks like this
/ProjectRoot
- .gitlab-ci.yml (symbolic link to "shared/.gitlab-ci.yml")
- shared (this is submodule)
- .gitlab-ci.yml
In this situation, pipeline ...
-1
votes
0
answers
78
views
Pre-commit hook installation is too slow
Sometimes, when I try to install pre-commit hooks on new projects it is too slow.
For example, I see this text for about 20+ minutes and nothing changes:
$ pre-commit install --install-hooks
pre-...
1
vote
0
answers
35
views
`schemachange`, snowflake and oauth authentication in GitHub action
I have been trying to use Oauth Authentication of schemachange in my github action pipeline; however, I get the following error message
Traceback (most recent call last):
File "/opt/actions-...
-5
votes
1
answer
72
views
I don't understand how to link a project in the IDE to a repository on Github [closed]
I have a project that I decided to start learning java from. It's called the "Personal Expense Tracker". I created a module in IntelliJ Idea with this name. This module, which is located in ...
-10
votes
0
answers
139
views
How to flatten git history as if there was no branch? [closed]
For some reason I have some unreachable commits, that only git log --all can show:
git log --graph --all --oneline
* B2.1 (HEAD -> main)
* B2
| * A2.1
| * A2
| | * B1
| |/
|/|
* | B
/
| * A1
|/
* ...
-1
votes
0
answers
37
views
Push a directory to GitHub from AWS ec2 [closed]
I have a laravel project in AWS ec2. I have lot of folders in storage folder of my laravel project. I need to create repos for each folder in GitHub. I need commands for creating several repos and ...
-1
votes
0
answers
47
views
How to solve pushing tags containing secret?
When I use git push, everything is up-to-dated. But when I use git push --tags, I get:
remote: error: GH013: Repository rule violations found for refs/tags/cấutrúc2.3.0.
remote: —— GitHub ...
1
vote
2
answers
51
views
How can I create a branch in my fork based off a branch in a different fork (of the same master)?
I have my own fork I’ve been working on for awhile:
https://github.com/udance4ever/batocera.linux/
I verified the work done in this branch of a fellow developer’s fork is something I wish to build ...
0
votes
0
answers
39
views
Problems with displaying git changes
When deleting one line, the git displays the entire file in red and green. In intellij idea itself, the changes are displayed correctly, and git diff shows that all lines have been deleted and re-...
0
votes
0
answers
17
views
git clone --depth 1 & .git/config.lock [duplicate]
I use git clone --depth 1 https://github.com/... to get repositories of useful code that I'm not involved in the development of onto my various machines. Occasionally I get a query about .git/config....
1
vote
1
answer
42
views
How do you resolve merging conflicts in an install-state.gz file?
I'm trying to merge a new version release of a project I'm working on and used git rebase to do so. One of the files that has conflicts is my .yarn/install-state.gz file. However when I click on it ...
0
votes
0
answers
30
views
How do i use git inside the xampp's htdocs folder on linux
I've been trying to work with git on my php web project that i already had, just changed the file type to php to connect it to a database, and since is no longer html i needed a web server so i use ...
-1
votes
0
answers
9
views
How to restructure folders in a nextjs project on github? [duplicate]
I have a 'Portfolio' folder and inside of it another 'portfolio' folder which contains all the nextjs project files.
I moved the 'portfolio' folder outside of the 'Portfolio' folder as it seems not ...
-1
votes
0
answers
33
views
Git is not restoring older versions (still red files)
I want to change to some older commits. Recently I added some new files (which I don't need anymore). I discarded all changes inside Swift, but the newer directories are still there (in red color) but ...
0
votes
1
answer
50
views
How to push changes from or Azure Devops to another company?
I have a repository on our Azure DevOps and using Visual Studio 2022 I am able to create branches and do all other tasks before it is merged with the main branch.
I would like to push our main branch ...
1
vote
0
answers
21
views
bitbucket push not working even though pull is working fine (SSH)
hopefully someone can help here
Im having issues using git push (git pull works fine) - i have a SSH key set up, but still get the following error :
Unauthorized
fatal: Could not read from remote ...
1
vote
0
answers
9
views
GitKraken issue when checkout with submodule
I have a problem when I checkout from one branch to another in a repo containing git submodules.
For example:
parent-repo (branch master)
.
├── test.txt
└── README.md
parent-repo (branch develop)
.
├─...
-4
votes
0
answers
72
views
How can I identify modified Git repositories to safely clean them up? [closed]
Question:
To safely clean up my local Git repositories by identifying those that can be deleted without losing any unpushed or uncommitted work.
Any guidance on how to approach this would be ...
0
votes
0
answers
9
views
Restore Git Log Branches in IntelliJ, using mac
Note: Previously to place this question I tried these solutions:
https://stackoverflow.com/a/72490630
https://stackoverflow.com/a/75446910
https://stackoverflow.com/a/78105822
I deleted the .idea ...
-1
votes
0
answers
21
views
vs2022 How to open original file in Compare Branches mode
Unable to reach original file located in project when in compare mode.
When comparing branches in VS2022, how to easily open original file for applying modification. In compare mode of branches, when ...
0
votes
0
answers
10
views
Error when cloning a GitHub project: "Operation not permitted" and "invalid index-pack output"
I encountered an issue when trying to clone a project from GitHub. The cloning process would reach "receiving objects: 99%", pause briefly, then jump to 100%, and the following error ...
-2
votes
1
answer
56
views
gpg: skipped "17FE7178DD4F****": No secret key on WIN 11
I have recently generated and setup a gpg key for which,
git config user.signingkey
17FE7178DD4F****
git config user.name
Subodh Pathak
git config user.email
[email protected]
also I have ...
0
votes
0
answers
45
views
Git tag in github workflow sometimes fails to resolve commit
I have a github workflow for the release process of an application. Part of this workflow is to set a tag on a commit and push that to the remote.
Sometimes the tag command fails with a message like ...
0
votes
2
answers
49
views
Git: how do I ignore a folder and everyting in it? [duplicate]
This is my .gitignore, located in the root Git repo folder:
.vscode/
My .vscode is also located in the root Git repo folder.
When I do git status I get:
modified: .vscode/launch.json
How do I ...
0
votes
1
answer
61
views
How Git sort entries in trees?
I use command like git cat-file -p {tree_hash} and see, that files sorted in special way. It is not Lexicographical order, because if we have entries in lexicographical order:
entrie,
entrie-dopes,
...
0
votes
0
answers
38
views
Git changes related
I installed the Github Copilot update on my PyCharm 2024.2.1 (Community Edition).
When I restarted the IDE, I couldn't find the changes I made to the code in the Commit section nor can I see the ...
0
votes
0
answers
13
views
Should I upload the compressed files installed with zero install from yarn berry to the git repository?
Should I upload the compressed files installed with zero install from yarn berry to the git repository?
I'm trying to upload a project set up with yarn berry to a git repository, but there are 1410 ...
0
votes
0
answers
25
views
git always keep one file the neweset even git-reset
In my project, there is a dev-note.md, which contains all my development note, and I want it always be 'content appened', especially, when I git reset project, it will not go back.
as the figure shows:...
0
votes
1
answer
103
views
How do I amend a commit that's already been pushed
I made some changes to a file and committed it with a descriptive commit message, and pushed it to the origin. A few seconds later, I discovered a typo in the same file and fixed it. I decided to ...
1
vote
2
answers
44
views
intended flow when git stash pop gets conflicts
I ran git stash pop and got some conflicts. It's a similar experience to conflicts from a rebase or merge, and I've been resolving them.
I don't really understand what flow I'm supposed to be ...
1
vote
1
answer
49
views
Weird IP Address while GIT pull
Everything was working good until one day while trying to pull repository from Azure Dev Ops I'm getting below error:
exec-cmd.c:243 trace: resolved executable dir: C:/Artur-Work/Git/mingw64/...