tagged [git]

How to show Git log history (i.e., all the related commits) for a sub directory of a Git repository

How to show Git log history (i.e., all the related commits) for a sub directory of a Git repository Let’s say that I have a Git repository that looks like this: Is there a way to ask `git log` to show...

22 Jan at 20:16

Why use 'git rm' to remove a file instead of 'rm'?

Why use 'git rm' to remove a file instead of 'rm'? On SVN, removing something from the filesystem directly (rather than using svn) created a load of headaches. I haven't found this to be an issue when...

15 Jan at 17:35

Best practices for adding .gitignore file for Python projects?

Best practices for adding .gitignore file for Python projects? I'm trying to collect some of my default settings, and one thing I realized I don't have a standard for is .gitignore files. There's a gr...

31 Dec at 21:52

How do I add files and folders into GitHub repos?

How do I add files and folders into GitHub repos? I created an account on GitHub and I'm facing a problem with adding files. I have added `readme.txt`. Also, I have 3 other PHP files and a folder incl...

29 Dec at 00:57

How to upload a project to GitHub

How to upload a project to GitHub After checking [How can I upload my project's Git repository to GitHub?](https://stackoverflow.com/q/6674752/5740428), I still have no idea how to get a project uploa...

Issue with adding common code as git submodule: "already exists in the index"

Issue with adding common code as git submodule: "already exists in the index" I want to add some git submodules. I've received two projects sharing some common code. The shared code was just copied in...

29 Dec at 00:51

How to close git commit editor?

How to close git commit editor? I just executed a command `$ git commit` and it opens a new editor. But I'm trying to close that new commit editor. How to do this? I'm using Git for Windows.

29 Dec at 00:49

How to exit a 'git status' list in a terminal?

How to exit a 'git status' list in a terminal? How can I exit a terminal listing mode generated by the `git status` command?

29 Dec at 00:37

What is the difference between merge --squash and rebase?

What is the difference between merge --squash and rebase? I'm trying to understand the difference between a squash and a rebase. As I understand it, one performs a squash when doing a rebase.

29 Dec at 00:28

How to commit a change with both "message" and "description" from the command line?

How to commit a change with both "message" and "description" from the command line? I can push commits to GitHub via `git` (on the command line, not the Mac app). When I push commits directly from the...

29 Dec at 00:26