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

git - Is the order of commits important?

If, for example, I create a file and commit a file, but don't push. Then later on I realise this file is in the wrong folder and move it and commit the move. What will happen when i push? Is the order of commit important, or should I be removing the…
Joe Pleavin
  • 436
  • 1
  • 4
  • 21
0
votes
1 answer

How do i push my microservice folders to Github as one repository

I have a micro-service app built in Laravel 9. It is built as two micro-services: frontend and backend. Each micro-service has sub-folders and file because each is a Laravel installation. I want to commit the whole as one repository to GitHub using…
Yemi A.
  • 49
  • 1
  • 4
0
votes
2 answers

How to import changes in other branches in GIT?

I have created a branch called "multiple_fixes" off my Dev branch and have been working there for a couple weeks. While I was working on my branch, several other people have created branches after I created mine, and have since made pull requests…
0
votes
0 answers

Making commit in the past on GitHub?

I have made commit in the past with the following git command: git commit --amend --date="$(date -v-60d)" The timestamp is coming up as expected in the git history. I have pushed my changes to GitHub. But GitHub UI is not showing the timestamp…
Exploring
  • 2,493
  • 11
  • 56
  • 97
0
votes
0 answers

How to compare 2 commits inclusive using GitHub URL?

I have 2 consecutive commits, e.g., fc07217 and cb7373b. I can view the changes made by the commit fc07217 via https://github.com/fmtlib/fmt/compare/cb7373b...fc07217. How can I obtain the changes brought in by both of these commits? I.e., the…
cppbest
  • 59
  • 8
0
votes
1 answer

How to include untracked files in a command like `git commit --dry-run -a`

I'd like to review that Git is going to properly detect files as moved, rather than deleted/added new - but there doesn't seem to be any way to preview the operation - it seems like my only option is git add . --dry-run, which then I can't see the…
Slbox
  • 10,957
  • 15
  • 54
  • 106
0
votes
1 answer

Reverting a few of the commits to the repository, while saving the commits that are being reverted in a separate branch to be applied later

We are migrating our code to a higher version of the underlying framework (.NET 6). This has resulted in a few commits to the repository. It was recently decided that we are not yet ready for the upgrade. We have now been asked to possibly move all…
Roopak
  • 73
  • 1
  • 7
0
votes
0 answers

Get commit of existant branch created from another one

I'm creating a new branch through gitlab. How can i get the commit(hash code) information of branch pack that was used to create branch test through git commands/ gitlab API ?
0
votes
1 answer

Will i loose the committed data if i change my PC

I have some issue with my laptop. It will get replaced but i have data which is committed on all the branches and not pushed to remote. Will I loose all the branches data?
jimmy
  • 45
  • 9
0
votes
0 answers

Lost Changes after rolling back the last push on git

I rolled back my last push from git using the following commands: git reset --hard HEAD@{1} git push -f git reset --hard HEAD@{1} The push was successfully deleted but I lost all the changes from file and the rest of the files from visual…
0
votes
2 answers

Switching between Git users on the same machine (works), but why do both have access to the other's repository?

I have two GitHub users accounts (private and work). Call them Allison and Bob. I have a Bash script. Call it: allison_git that does: ssh-add -D eval $(ssh-agent -s) git config --global credential.helper wincred git config --global…
pylos
  • 102
  • 8
0
votes
0 answers

Why not `--file` on fixup commits?

lets say I have a huge PR and I want to do some automatic rewrite of some of the commit messages. Pretty sure there is a way to automate git-rebase to run commands for every commit (for example to sign/re-sign) but I like the git commit --fixup…
nhed
  • 5,774
  • 3
  • 30
  • 44
0
votes
0 answers

Generate release_note.md when distributing by fastlane on app center

I have one repo at azure, and now using fastlane at terminal to build and distribute app to AppCenter. Can I excute fastlane command to generate release_note.md, the file will contains branch name, and last git commits. Thanks for your support!
LamLe
  • 1
  • 1
0
votes
0 answers

Semantic commit type if only changed the error message

What is the best practice of semantic commit type if I just improved the output message to make it clearly? Example: Original output message is: console.log('You are wrong') and I've changed into: console.log('You are wrong because "a" is…
Kurt
  • 678
  • 1
  • 7
  • 24
0
votes
1 answer

Git commit returns error docker/error response from deamon on windows

I am running docker for my Laravel application (BE). I have made a simple update on readmeme.md file and tried to commit & push this file to git. When I try to commit it this is what I get. > git -c user.useConfigOnly=true commit --quiet…
sme3x
  • 18
  • 5