Git/notes
< Git
Jump to navigation
Jump to search
Questions
- When
git pull github
returns this:
You asked to pull from the remote 'github', but did not specify a branch. Because this is not the default configured remote for your current branch, you must specify a branch on the command line.
- Q: How do I figure out what branch I want to use?
- Given that the four possible conditions for a file are "untracked", "unmodified", "modified" and "staged" (according to this):
- Q: If a staged file becomes "unchanged" when it is "committed", does that mean that it is no longer "staged"? Or should we speak of those four conditions as applying to changes rather than files?
- Q: If the four conditions apply to changes (not files), then does it make sense to talk about "staging files"?
- Q: How do you get a list of all the files that have been staged, whether or not they are "modified"?