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

How to delete all files > 1 Mb from the history (but keep them in the repository)

I have a repository with many big files (psd, exe, pdf, etc.) and everytime I commit an update of thoses files the git .pack file grow drastiquelly to keep the history. How can I delete all files > 1mb from the history but keep them in the…
zeus
  • 12,173
  • 9
  • 63
  • 184
0
votes
0 answers

How can I change all commits of another user, "X" to another user, "Y"

I am looking out for a way to change the commit histories on a project whereby the commit by user "X" is changed to commits made by user "Y". Is that in any way possible? The possible or similar solution I saw was this, git commit --amend…
oyerohabib
  • 187
  • 3
  • 16
0
votes
1 answer

Eclipse commits not showing up on Git Contributions

I am currently going trying to learn java, and my IDE is Eclipse. I connected my Github account and am easily able to push/pull etc. Everything is working great, except for the fact that my commits are not coming up on my Contributions. I think I…
0
votes
1 answer

How do I check if an old commit of a deleted branch that has been merged exists in develop?

Basically, I'm trying to write a script that ensures that a certain commit has been merged. When i try to execute the command git branch --contains 0871b8479e6332ee3bd7a1ea9ea5b53795c3b3c5 in my terminal, I face the following error: no such commit…
0
votes
0 answers

Establish which version/tag a commit contributes to

In a commit based research for Software Engineering, the first task I've been asked to do is to link every commit to a version. So, per say, every commit that happened between version 1.1 to 1.2 would be seen as 1.1. Now, to do so, I got all tags…
0
votes
2 answers

Why I need small Git commit every time?

I am a newbie and please forgive me if this is a valid question. I am learning git and reading best practices from here https://acompiler.com/git-best-practices My question is why does atomic commit? If I am working on a story and it takes 10 days…
Coder
  • 11
  • 2
0
votes
2 answers

How to delete/clear old commit history from pull request?

After a pull request and merge from my remote origin branch to upstream, I deleted the branch from my remote, but I rename the local branch and keep working on it (which I think is the reason why I messed up). When I commit this local branch to…
Nigel
  • 161
  • 12
0
votes
0 answers

How do I commit to my README file on Gitpod?

Please pardon my possibly quite simple question. But how do I commit my changes to my README file on Gitpod? When I do git add . and then git commit -m "text" it just says "nothing to commit, working tree clean"?
Katagaria
  • 5
  • 3
0
votes
1 answer

Main Parent directory showing commit-message of sub-directories(changing its with commit message with latest commit every time)

My question is simple : Why is the parent directory changing it's commit message with the latest commit message I did on any sub-directory or any file inside that parent directory? Is it possible for the parent folder to have the exact same commit…
user16486258
0
votes
1 answer

Will git revert on my last commit that failed to push show me my modified files back in source control explorer?

QUESTION - If I perform a git revert on the last commit '28ea268...', will it show me my modified files again in Source Control Explorer in VS Code? FYI - My last commit ('28ea268...') failed to push the files (see below) because of a large +100MB…
chuckd
  • 13,460
  • 29
  • 152
  • 331
0
votes
1 answer

I made changes while on the wrong branch. I haven't committed yet. How do commit my changes to the intended branch?

I'm on branch A and made changes. The changes have not yet been added or committed. These changes are intended for branch B. How do I go about adding and committing these changes to branch B?
heikreus
  • 35
  • 1
  • 5
0
votes
2 answers

Fetch a specific string from Git commit message in Jenkins

I am fetching git commit message from my Jenkin freestyle project by cloning the git repo, by using the below command. git log -1 --pretty=%B ${GIT_COMMIT} I am able to get Git commit message using this, but I want to fetch only the specific…
0
votes
1 answer

Committing issues in Git

I am working on a project where I had made a few changes, committed it and pushed it, however later, I forgot about these changes, soft reset these changes and put them with my next commit, is there anyway I can recover the old commit without…
Abhijith Rao
  • 75
  • 1
  • 1
  • 6
0
votes
1 answer

Checkout files from a specific commit failed with space in the path

What I want to achieve is to get all updates of a specific commit 76363636 from branch1 to branch2. I used following codes instead of just checkout this commit, as it does not fit my purpose : git checkout branch1 $(git diff-tree --no-commit-id…
vanessen
  • 1,125
  • 1
  • 12
  • 19
0
votes
1 answer

Git - revert single commit after there have been other commits

Simple question and I don't really have code to show sorry. In git is it possible or whats the best way to revert a commit after I have more commit after the commit I would like to revert. If I have commits 1,2,3,4 and 5 and I want to revert commit…
lomine
  • 873
  • 5
  • 20
  • 36