Questions tagged [git-commit]

git-commit - Record changes to the repository along with a log message.

Stores the current contents of the index in a new commit along with a log message from the user describing the changes.

Added from reference

2117 questions
0
votes
1 answer

I made no change before switching but Eclipse asks me to commit

I have several branches for one project. Recently, I have a problem every time I switch from one branch to another: I made NO change, but Eclipse prompts "Checkout conflicts: You have uncommitted changes..." and expects me to commit. In this case,…
Eric Young
  • 11
  • 5
0
votes
3 answers

How to delete all the commits I have made to a repository and to permanently delete a Git repository

I was brought on board as a contractor to do some work on a forked open source repository. After finishing the work and a successful launch, the hirer is ghosting me and refuses to compensate me as agreed. How can I either: permanently delete the…
0
votes
0 answers

GIt still showing deleted files

After trying, git push origin master , I got the results as: Enumerating objects: 1929, done. Counting objects: 100% (1929/1929), done. Delta compression using up to 4 threads Compressing objects: 100% (116/116), done. Writing objects: 100%…
Atom Store
  • 961
  • 1
  • 11
  • 35
0
votes
0 answers

Deleted a specific commit on Github due to a KEY exposure

I forgot to delete a comment line in my commit and wonder how to delete a specific I don't want to use git revert because I already pushed other commits. I do the git-filter-repo method but it throw me an error of on git push origin --force --all. I…
JoCoz
  • 11
  • 4
0
votes
2 answers

How to make branch B have the same code as branch A?

Branch A has less code than branch B. I want to merge branch A into B so that B will end up with less code and essentially have the same exact code as A. Similar to undoing multiple commits. The problem is that I have to do this through a Pull…
0
votes
1 answer

Getting the last commit date of a specific remote branch in Git repo from local

How can we get the last commit date of a specific branch in remote Git - either through API or CLI? For example: In the attached image, "generics" is the branch in the repo, and 5-March-2013 is the last commit date for that branch. I'm looking to…
maverick
  • 33
  • 4
0
votes
2 answers

What happens to commits between the pull the request and approval

Suppose my feature branch is from the develop branch. I make some commits into feature and submit pull request to my boss to merge into develop. But if I continue to work on, commit and push to feature before he reviews the request, then will will…
Della
  • 1,264
  • 2
  • 15
  • 32
0
votes
1 answer

Iterate through diff and commit each file one by one with unique Commit message

I have a script running in GitHub Actions that runs a retrieve from another source and loads those changes into a Git branch what I then want to do is iterate through the list of changed files and add them to a commit and add a specific commit…
0
votes
0 answers

Unable to commit greyed-out files after rename

I have renamed a couple of images in a project to have their names aligned with the names of the files that I receive from API, strangely some of them did commit and went through to remote repo, and some of them didn't. I am unable to commit them no…
seven
  • 1,183
  • 14
  • 33
0
votes
1 answer

Android Studio IDE Basics - different Colors on file name

Can Anyone explain what is the meaning of this different colors. Sometimes I also see Blue and green colors on file name.
Nabil Nazar
  • 63
  • 1
  • 8
0
votes
1 answer

Git diff on rewriting history

I am curious to know about Git diff in this situation, i could not find in Git docs Assume on branch A , i have three commits as Branch A: Commit 3 <-- Commit 2 <-- Commit 1 Commit 3 is latest on branch. Now if we re-write the commit history i.e.…
John Byro
  • 674
  • 3
  • 13
0
votes
1 answer

How to remove child commit from existing pr

It's silly really, I made a pull request yesterday on branch_A to master. Many files were changed and I don't want to add more to it. I switched to a new branch from branch_A to branch_B. I added the files I wanted to commit, and pushed from…
Jordan
  • 117
  • 1
  • 1
  • 11
0
votes
1 answer

Is it possible to enforce a signed commit locally?

My company uses GitHub for our organization repos and also validates authors by enforcing signed commits. The problem is that it is possible to clone a repo, create a branch, submit several commits, and create a Pull Request without any signed…
Mike Williamson
  • 4,915
  • 14
  • 67
  • 104
0
votes
1 answer

Is there a way to only skip the commit-msg hook

I've put a check for the commit message in the commit-msg hook which I want to skip at times. I know there is a git commit --no-verify for the task, but that also skips the pre-commit hook. Is there a way to only skip the commit-msg hook and not the…
suvhotta
  • 3
  • 3
0
votes
0 answers

Getting Can't connect to any URI (not authorized) error while pushing the commit to github repo

I'm simply trying to push my practice project code (from eclipse) to the github public repo. But unable to do so as it say Can't connect to any URI (not authorized) error Is generating the ssh key is mandatory? Error Screenshot