Tag: commit

58 votes
4 answers
400 views
How can I reference a commit in an issue comment on GitHub?

I find a lot of answers on how to reference a GitHub issue in a git comment (using the #xxx notation). I'

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
62 votes
18 answers
2.6K views
Make the current commit the only (initial) commit in a Git repository?

I currently have a local Git repository, which I push to a Github repository. The local repository has ~10 c

avatar
Daniel
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
2.6K views
Link to the issue number on GitHub within a commit message

Is it somehow possible to automatically have a link to GitHub issue number in the git commit message?

avatar
Freida
0 1 0 9
asked 07 September, 2021
78 votes
24 answers
2.2K views
How can I remove a commit on GitHub?

I "accidentally" pushed a commit to GitHub. Is it possible to remove this commit? I want

avatar
Georgie
0 1 0 9
asked 07 September, 2021
58 votes
29 answers
3.1K views
How do I make Git use the editor of my choice for commits?

I would prefer to write my commit messages in Vim, but it is opening them in Emacs. How do I configure Git to

avatar
Hallie
0 1 0 9
asked 07 September, 2021
66 votes
25 answers
1.7K views
Commit only part of a file in Git

When I make changes to a file in Git, how can I commit only some of the changes? For example, how could I com

avatar
Dusty
0 1 0 9
asked 07 September, 2021
50 votes
30 answers
2K views
Message 'src refspec master does not match any' when pushing commits in Git

I clone my repository with: git clone ssh://xxxxx/xx.git But after I change some files and add and commit

avatar
Luis
0 1 0 9
asked 07 September, 2021
64 votes
27 answers
1.8K views
62 votes
30 answers
1.2K views
How do I undo the most recent local commits in Git?

I accidentally committed the wrong files to Git, but didn't push the commit to the server yet. How can I

avatar
Denese
0 1 0 9
asked 07 September, 2021