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

Add compulsory commit message format in GIT

I want to do configuration in GIT that will enforce all commit messages to follow certain pattern. How can I do that? EDIT: I want it for Github.
pooja jain
  • 11
  • 3
0
votes
0 answers

The phpMyAdmin repo on GitHub is a Dev (uninstalled) version. Thus many files are NOT even there. How do we commit fixes to THOSE missing files?

I have a lot of experience with PHP/MySQL but not much with Git. I figure this question should be an easy one for you but I can't figure it out and would really appreciate you answer(s). Here is my question: I've downloaded and installed phpMyAdmin…
0
votes
1 answer

How can I cancel the accidental commit to dev branch (hasn't pushed it yet)?

I'm not supposed to commit to dev branch directly, but I accidentally committed something but hasn't pushed it yet, what should I do if I want to cancel it without affecting anything else? I found a command online: git reset --hard HEAD^ can I use…
wawawa
  • 2,835
  • 6
  • 44
  • 105
0
votes
0 answers

Recover git commits remotely in commit history

I have been working on a shared repository. The repository was entirely restructured by a team member. That made me losing my commits in a directory remotely(I have them locally). Now, looking into the commit history of that directory, it shows only…
0
votes
1 answer

git branches are not visible

This is the first time I am using git I have created a repo and uploaded the code for the first time from my terminal. The code was uploaded and I am able to see it in my account on github.com I tried creating two branches and uploaded the code with…
Siva K
  • 4,968
  • 14
  • 82
  • 161
0
votes
0 answers

How to use the editor for git in Atom?

I'm using git commit and I already have it configured to Atom so Atom opens a file every time I want to commit a file. The problem is I don't know how to save this file as a commit. If there is no answer to this, how do I get out of using Atom as…
0
votes
3 answers

Retrieve all/recent commits history from all branches from a github code organization to CSV/Json

I want to fetch all commits history from GitHub code organization consisting of 225+ code repos private as well as public. I saw a lot of other solutions in google and stackoverflow, but couldn't concede a single one. I am looking for an automated…
Rajmdg
  • 38
  • 4
0
votes
1 answer

Git - output changes without modification

I've just cloned my repository from my Bitbucket repository, however I am getting a lot files with changes in stage to commit. However, there are changes, like in this example: I have hidden the DB name and the table name for privacy but they are…
user1911
  • 680
  • 1
  • 14
  • 36
0
votes
1 answer

Get first commit of a branch created from master

I have a branch lets say dev. I created my feature branch from dev. dev has commits starting from 2014. So dev | ---FeatureBranch created on June 10 2021 I made my 10 commits on my feature branch lets say on June 10, June 11, June…
arpit joshi
  • 1,987
  • 8
  • 36
  • 62
0
votes
3 answers

How do I not transfer changes done to files from a branch to a another in git

I have a homework assignment where I need to make three different implantations to the same program. The professor recommended using git and having each implantation in a different branch. Thing is that when I do a change on a branch named A, it'll…
Ahmad Safa
  • 51
  • 6
0
votes
2 answers

Can there be git commits, that point to the same tree?

I know that multiple git-trees can point to the same blob. This happens, when we only change the filename and do a commit again. But can there be git commits, that point to the same tree? If yes, when does it occur?
gib
  • 3
  • 1
0
votes
1 answer

What were existing files from working-tree at a given commit?

I want to know, if it's possible, what were the existing files from my working-tree at the time that a concrete commit was made.
0
votes
1 answer

Using git to see differences between similar code

I started to code with a previous written code from someone else, but I didn't initiate any git repository at the moment. I still have access to the files made by this other person. I would like to use git to help to compare the initial code and the…
Andre GolFe
  • 300
  • 5
  • 12
0
votes
0 answers

Git rebase without changing the commiter of each commit

I changed the author name of some past commits (commits I made) using rebase starting at the root. I used git rebase -i -p --root, and then marked the commits I wanted to change with "edit". Then I used git commit --amend --author="Username "…
0
votes
2 answers

What to do about uncommitted changes

I just migrated my files from the old PC to the new. That includes a few development git repositories. But I guess because the files were copied, the datestamps are different, and so git is now seeing them as uncommitted changes, even though there…
leoplaw
  • 53
  • 7
1 2 3
99
100