Can I edit two files then make one commit using GitHub Web-based editor?

There is a web-based workaround: Create a temporary branch, switch to it; Edit multiple files, commit each file separately; Make pull request; Under Merge pull request button, choose Squash and merge (if the repo allows it), then confirm merge; Delete temporary branch. I use this method on a PC which I don’t want to install … Read more

Git commit opens blank text file, for what?

You’re meant to put the commit message in this text file, then save and quit. You can change the default text editor that git uses with this command: git config –global core.editor “nano” You have to change nano to whatever command would normally open your text editor.

How can I fix git commit error “Waiting for your editor to close the file…” with VS Code?

Have you confirmed that code is accessible from the command line where you execute git commands? You could run code –version BTW. When I execute where code I get C:\Program Files\Microsoft VS Code\bin\code – it’s no longer installed in the %App_Data% folder. However, this should be irrelevant if you only specify code –wait without the … Read more

Git commit -a “untracked files”?

For others having the same problem, try running git add . which will add all files of the current directory to track (including untracked) and then use git commit -a to commit all tracked files. As suggested by @Pacerier, one liner that does the same thing is git add -A