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
2 answers

Splitting changes into 2 commits for git

I have a master branch on git. Using EGit on Eclipse, I have downloaded on my local repo and I have made some changes on many files. I have already made a huge chunk of changes on many tracked files locally, originally planned for one fat commit.…
user2526586
  • 972
  • 2
  • 12
  • 27
0
votes
2 answers

How to sync git repos when two people are working on them and changing the commit history simultaneously?

I am currently working on reordering, squashing and changing some stuff in a git branch which has a lot of pending commits (currently around 300) that needs to be merged. I am facing difficulties working on it simultaneously. Consider that the…
0
votes
1 answer

How Can I git squash commit after PR completed?

In our projects, We use policy squash merge for merging and release our project when merge release branch to master branch. one of my co-worker use no fast-forward merge and put all develop's history commits in master's history commit. I search the…
Alex
  • 31
  • 4
0
votes
1 answer

How could I find out the old file name in Azure DevOps?

I moved a file one folder up. Now in Azure DevOps in commit content I see [rename] written next to the file, but I do not see how the file name was changed (i.e. I do not see the old file name). Is there any way I could find this out?
manymanymore
  • 2,251
  • 3
  • 26
  • 48
0
votes
1 answer

Default Merge Commit message templates for all projects in group

Is there a way to make a default merge commit message in all projects including the newly created ones in a group instead of manually changing it per project? I want my default merge commit message to include my previous commit…
Ezz Redfox
  • 89
  • 1
  • 9
0
votes
1 answer

"commit or discard the untracked or modified content in submodules"

Since this morning I have a problem for committing my work : I tried several commands to clean up my local repo but I still have the same problem, I have searched well in other topics where the problems encountered were similar to mine but the…
clement
  • 19
  • 3
0
votes
1 answer

GIT diff command working in powerShell with different options

I am new to GIT commands and having tough time with it :(. My requirement is to use GIT command in PowerShell and do some logic. How to combine GIT diff with commitID and folder path? This works- >$(git diff --name-status HEAD~1..HEAD…
Nazeer
  • 3
  • 2
0
votes
1 answer

How do I remove directories from an initial commit: push to GitHub fails

I want to put a legacy code of mine on GitHub. In a foolish move, I selected the whole project (in PyCharm) to add to the initial commit; I forgot that this includes data and plot directories that are huge and exceed any file and repo size limit (8+…
0
votes
1 answer

git: get commits in order for changelog

I am working on git following gitflow (with feature branches and hotfix). Each commit is as follows " [ticket ID]: message " With jenkins I would like to generate a changelog between 2 tags, but I don't know how to do this correctly. If I do a git…
user60108
  • 3,270
  • 2
  • 27
  • 43
0
votes
1 answer

Intellij stopped auto staging, files no longer highlighted green after changes

Previously working with Intellij it was highlighting files green, that I have changed but not committed yet. Now when I change they are not being highlighted, when try to git commit -m message in terminal I get Changes not staged for…
0
votes
2 answers

How can I check if a commit exists in a pull request on GitHub?

So I have a list of commits SHAs to check. In a given commit SHA let's say 123ab45, I want to see if the commit is linked to a PR in the branch. Is there any command that I can put to check that?
appix
  • 29
  • 3
0
votes
2 answers

In a given repo, output the differences between two commits

When I want to see the output of the gif difference between given two commits SHAs (let's say 123ab45 and 678cd90), I use this git diff 123ab45 678cd90 But when the two commits that sit in a different repo, I am trying to figure out how to output…
appix
  • 29
  • 3
0
votes
1 answer

How to configure submodule remote and push

I have a third party repo as a submodule sub living in parent/data/. In parent/data/sub/, git status gives me # On branch master # Your branch is ahead of 'origin/master' by 1 commit. # (use "git push" to publish your local commits) # nothing to…
Francis
  • 6,416
  • 5
  • 24
  • 32
0
votes
0 answers

How to commit a file to Bitbucket using Rest API?

I am trying to commit a file to Bitbucket using Rest API from postman, but it shows method not allowed. Below is the URL which I am trying http://URL/projects/CONFIG_MNGMNT/repos/devicegroups/browse/C:/Shivanand/ReadMe.txt I am trying to commit…
0
votes
2 answers

Delete again a file via a previous commit that deleted that file in the first place

Scenario: delete file.txt file, commitA and push restore file.txt via git checkout commitA~1 file.txt , commitB and push I want to delete the file again by invoking commitA by running the following checkout command: git checkout commitA…
Dan M
  • 770
  • 1
  • 9
  • 18