2,181 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
1
vote
3
replies
65
views
Resign commits without losing dates
I don't have access to the GPG key right now. How can I make commits and then sign them on another computer? I know about git rebase, but it's important to me that the dates in the GitHub repository ...
Advice
1
vote
13
replies
133
views
How does Git decide which files need to be diffed in the `diff-files` step of `git commit`?
Before asking the question, I want to be clear that this is a question about the algorithm that Git uses and would ideally be answered by someone who has experience with the Git source code or who can ...
1
vote
1
answer
106
views
Why is my git `commit-msg` hook not receiving commit message arg and failing? [closed]
I have a git hook commit-msg that checks the format of the commit message and rejects it if it is incorrect.
The hook was working fine until recently (and was not modified recently). But now whenever ...
0
votes
0
answers
77
views
confused PyCharm project and submodule displaying structure when committing
background
My original project structure is like this:
20240720 # project root
├── tests
├── vnpy # submodule
├── vnpy_clickhouse # submodule
├── vnpy_datafeed # submodule
└...
-1
votes
2
answers
63
views
Fix history gap of deleted and then recreated file
I recently did a migration of a project (Flutter, if it matters) from an old version of the framework it is using to a newer one. At one point in the migration branch, I deleted most of the source ...
1
vote
1
answer
63
views
Eclipse eGit: Cannot move source files into Staged Changes
This is a Java project using Eclipse and GitHub archiving -- has been running for several years.
Something weird happened with Eclipse (MacOS). I went to Search the workspace for a text string "...
0
votes
4
answers
292
views
What is the difference between a stash and a regular commit?
From Git - git-stash Documentation:
A stash entry is represented as a commit whose tree records the state of the working directory, and its first parent is the commit at HEAD when the entry was ...
-2
votes
1
answer
88
views
Visual Studio Code Source control not displaying files modified
I am trying to setup a React project in my laptop , cloning from a repository. Using VS code . Any files changed or added is not displaying on the source control. However only when made some changes ...
1
vote
0
answers
119
views
`git log` shows commits not upstream any branch or tag
I often watch git log --all --oneline --graph --decorate --colors to keep an eye on my rebases. Today, something rather unsettling is showing up:
* b782b84 (HEAD -> dev, origin/dev) III
* 22fe431 ...
0
votes
0
answers
33
views
Unstaged changes disappearing after saving files in Visual Studio 2017
I am using Visual Studio 2017 (version 15.9.70 recently updated), and I am facing an issue where unstaged changes are disappearing after editing and saving any file. I can see the changes briefly in ...
0
votes
1
answer
162
views
Configure gitlint to ignore long links when they exceed the maximum line length
gitlint is a handy tool and for example useful to limit the max line length of commit messages to 72 characters - as widely adopted standard across many projects. However, this rule also doesn't allow ...
0
votes
2
answers
267
views
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository
After I used all the commands
git add .
git commit -m "tracker project"
git remote add origin https://github.com/pqd.git
git branch -b
git branch -a
git branch -m main
git branch main ...
0
votes
1
answer
61
views
Bring Changes from a commit HEAD into a branch
I have a feature branch ff which is based on main.
I want to bring changes made by a commit HEAD abcde on top of ff.
How can I do this?
1
vote
0
answers
44
views
Put the bumped part in the message of bumpversion
In order to let Bumpversion make a commit message like this:
<date>|<bumped part>|<current version>|<message>
(Where the <bumped part> means major, minor, or patch)
I ...
3
votes
4
answers
128
views
Is there a way to `git commit --patch --only`?
Say I’ve been staging changes using git add, but then realize that there is some small change—consisting of a single hunk, let’s say—I should commit separately before committing the staged changes. ...