git-commit Questions

4

This is what I am getting as output when I am trying to commit any file. I tried installing git again and watched some tutorials on youtube to get it started again but it didn't work. Still getting...
Funchal asked 2/11, 2020 at 17:5

3

I'm trying to upload a number of files and folders to my private GitHub repository. However, when I open my private repository on GitHub, I can't see the files and folders that I've pushed. I've be...
Saffren asked 21/1, 2024 at 18:5

3

Solved

I've recently updated Visual Studio to 17.8 and since then I can no longer do a Git commit. The error it displays at the top of the Git panel is: Git failed with a fatal error error: open (".....
Bethsaida asked 29/11, 2023 at 10:53

8

Solved

I was able to commit fine yesterday. But today (I didn't change anything), when I commit: $ git add config.h $ git commit -m "Update config.h to reset the values" error: Couldn't set refs/heads/ma...
Jade asked 12/6, 2015 at 17:43

7

Solved

Problem Description I'm having trouble making commits, when I try to make a commit with the command, for example: $ git commit -m "add readme" pre-commit not found. Install pre-commit wit...
Conny asked 24/6, 2022 at 12:58

1

Is it possible to trigger a webhook whenever a public Github repo gets a new commit. I tried seeing on Zapier and other automation tools, but all of them require me to be an owner of that repo.
Naarah asked 11/4, 2022 at 5:24

4

Solved

For some reason my Github repo is not showing the latest couple of commits. I did git add, git commit, and git push like I always do. But tonight it seemed to not have registered on the repo's comm...
Semple asked 3/8, 2016 at 4:10

14

Solved

I have a very basic github setup with a readme, a directory, and another directory inside it with an html file. On github I can only view the readme and the first folder but none of its contents, a...
Milano asked 23/5, 2012 at 14:4

4

Solved

I have a git repository on an OS X server that used to work fine. I was able to add files, commit them, and pull the content to my laptop. Now, when I ssh into the server and do git commit or git ...
Monopolize asked 3/4, 2011 at 0:8

5

Solved

I'm still not totally clear about the way git commit messages are supposed to be written. I know the basic rules, but this one confused me. In my practice project, I created a login system and a u...
Massorete asked 24/12, 2014 at 23:4

17

Solved

I'm trying just git commit and Git is giving this message: hint: Waiting for your editor to close the file... /c/Users/AGT/AppData/Local/Programs/Microsoft VS Code/bin/code: line 28: /Code.exe...
Ontina asked 6/9, 2018 at 2:58

5

Solved

Some time ago I set up my .gitignore file to not track a folder my_folder with: my_folder/ Now I want to track only a given file inside said folder, named my_file.md. After making .gitignore loo...
Brimmer asked 4/10, 2014 at 2:39

8

I have pushed one commit to remote but now I realized that the commit message is not correct. I would like to change the commit message but AFAIK it is not possible. So i decided to create empty co...
Vallee asked 22/11, 2013 at 6:40

3

Is there a way to globally configure git to not automatically generate user's email, if none is set and abort the commit instead? $ git commit -m "test" [master (root-commit) 71c3e2e] test Committ...
Grille asked 4/5, 2014 at 14:1

14

Solved

I am trying to recover my work. I stupidly did git reset --hard, but before that I've done only get add . and didn't do git commit. Please help! Here is my log: MacBookPro:api user$ git status # O...
Berliner asked 10/9, 2011 at 19:28

14

Solved

I am trying to recover my work. I stupidly did git reset --hard, but before that I've done only get add . and didn't do git commit. Please help! Here is my log: MacBookPro:api user$ git status # O...
Corncrib asked 10/9, 2011 at 19:28

30

Solved

When I make changes to a file in Git, how can I commit only some of the changes? For example, how could I commit only 15 lines out of 30 lines that have been changed in a file?
Instruction asked 6/7, 2009 at 2:25

29

Solved

I want to change the author of one specific commit in the history. It's not the latest commit. Related: How do I change the author and committer name/email for multiple commits?
Galvan asked 15/6, 2010 at 4:0

2

For a given commit, I need to run blame on the previous version of each line changed but said commit. Having a commit that changes lines 2 and 3 on file a, I want a way to see the output of git bl...
Sexton asked 28/6, 2013 at 23:43

19

Solved

I currently have a local Git repository, which I push to a Github repository. The local repository has ~10 commits, and the Github repository is a synchronised duplicate of this. What I'd like to...
Rotorua asked 13/3, 2012 at 11:41

141

I clone my repository with: git clone ssh://xxxxx/xx.git But after I change some files and add and commit them, I want to push them to the server: git add xxx.php git commit -m "TEST" git push...
Ritchey asked 15/11, 2010 at 6:9

7

When I tried to make a commit using git commit, the sublime text editor did open, I wrote the commit message and saved and closed the editor but the changes were not being committed. The terminal h...
Jackstraws asked 2/2, 2015 at 10:39

38

Solved

How do I remove a file from the latest commit?
Spoonfeed asked 18/9, 2012 at 16:59

3

Solved

I have a question that most closely matches my problem was made, but could not add a comment. git: Your branch and 'origin/master' have diverged - how to throw away local commits? I ran t...
Cumulonimbus asked 17/9, 2015 at 12:32

4

Solved

Recently in a project with multiple people, a commit was made as seen in the image below. Marked in red you can see a commit with the description/comment of 'Merge?'. This commit added numerous fi...
Stockpile asked 12/3, 2014 at 22:36

© 2022 - 2025 — McMap. All rights reserved.