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

Batch script git commit with dynamic comment

I am using a .bat file to commit a project to git and github. I would like it to take one optional argument that is the username of the person calling the file. That will be passed in using the command line. Don't worry about that part, it works…
ToMakPo
  • 855
  • 7
  • 27
0
votes
0 answers

Unable to push README.Rmd to GitHub

At first, I used the command below to generate my README file usethis::use_readme_rmd(). After modifying the README.Rmd file, I tried pushing it to GitHub and receive this message within the Git Commit panel, which prevented the process to…
NganKD
  • 71
  • 6
0
votes
1 answer

git-status does not reflect modified file

Eventhough I have made unsaved changes to the README.md file, git status does not reflect modified file and instead says nothing to commit, why is this so?
user95434
  • 19
  • 2
0
votes
1 answer

How do I create a cron job that will commit all my changes in my repository every friday

I'm new to using Git and I made some research and discovered that I can run cron jobs to make my commits into my repository every certain time, my question here is. Can I create a cron job that runs every Friday at 16:00?
Eduardo Ortiz
  • 715
  • 3
  • 14
0
votes
2 answers

How can I recover last commit after git push force

I have a project repository on bitbucket with master branch. This branch has some commit that have been committed by my team (the latest commit was not committed by me). I just did the git push --force without knowing that it would delete all the…
user
  • 39
  • 9
0
votes
1 answer

How do I commit my code to github via gitbash?

When I try to do so I face the below issue
Bharath Kashyap
  • 133
  • 1
  • 2
  • 9
0
votes
0 answers

Visual Studio Code Git Branches

I am new to VSC and coding in general. I am currently working in Visual Studio Code to create new data on our website. However I noticed that at the end of the day, I close my computer and then reopen it the next day and continue working on the same…
zinski212
  • 11
  • 2
0
votes
1 answer

Pushes done by Pycharm or the terminal are not being counted in the commit calender of github

I am using pycharm on windows 10 home edition and whenever I push a the commit , the commit is shown on the website but not on the commit calender When I click on one of the repos created by pycharm , and then click on commits , I can see my name…
MrHola21
  • 301
  • 2
  • 8
0
votes
1 answer

Issue with Pushing Changes to GitHub with NetBeans

I am currently using NetBeans with GitHub to save my project. However, I've been having some trouble committing the changes. It keeps producing errors that I have been unable to solve, even after looking them up on the internet. I have attached a…
cocobeans
  • 71
  • 1
  • 8
0
votes
1 answer

Solving the rejected push of only-a-file push

how solving the rejected push of only-a-file push to replace its remote counterpart on github ? Try this https://happygitwithr.com/push-rejected.html without any success e.g. message ! [rejected] main -> main (fetch first) error: failed to…
user15806530
0
votes
0 answers

Did the git-commit-hash change? (8 to 7 digits)

Some of my CI/CD-Workflows depend on the commit-hash of git and I noticed one digit disappeared when I'm using: echo $(git log --pretty=format:'%h' -n 1) f7dc8fd In the command-line to obtain the hash - notice the 7 digits. (Usually I save it for…
Qohelet
  • 1,459
  • 4
  • 24
  • 41
0
votes
0 answers

name of commit in the terminal is different in the github

I try to combine commit for my branch. However, the id(?) or the name of the commit listed in the git hub is different with the terminal. How to resolve this problem so that i combine 3 commit into 1. in the terminal the name of the commits…
0
votes
0 answers

How can I delete a previos commit file on github or hide it? Accidentally exposed a private key

I accidentally exposed a private key in one of my files when I pushed it to github. Thankfully I got a warning email from google about my api being exposed. After I updated the file and pushed the commit, i have been unable to delete my previous…
Waleed Tariq
  • 825
  • 8
  • 19
0
votes
2 answers

How to make the parent git folder always point to latest commit whenever there is a new commit in child module(submodule) - Any Alternative?

Every time I push a commit to the submodule I need to update the parent repo to the latest commit in the submodule. Is there any automatic way to do that in the remote? I understood that there is no way directly I can achieve this, but cCan someone…
Bala krishna
  • 519
  • 1
  • 10
  • 24
0
votes
1 answer

How to commit code separately for app project with nested framework project in Xcode

I used the instructions in Apps with Multiple Xcode Projects to set up an app project with a nested framework project in Xcode. The project navigator looks like this: When I make changes to files in the framework and/or files in the app, clicking…
Kaplan
  • 91
  • 1
  • 11