<repo>/.git/config – Repository-specific settings.
Git clone
Copies existing git repository.
Clone repo located at location <repo_location>
Clone repo located at location <repo_location> to your local machine's directory <local-dir-path>
~/.gitconfig – User-specific settings. This is where options set with the --global flag are stored. $(prefix)/etc/gitconfig – System-wide settings.
Git clone
Copies existing git repository.
Clone repo located at location <repo_location>
git clone
Clone repo located at location <repo_location> to your local machine's directory <local-dir-path>
git clone <repo-location> <local-dir-path>
git add:
Adds a change in working directory to staging area.
Changes in staging area are included in upcoming git commit.
Stage all changes in file
git add file
Stage all changes in directory
git add <directory>
git commit:
Record changes to the repository.
Commit changes. Command will open a text editor where you can write commit message.
git commit
Commit changes. Will not open a text editor. It will use <message> as commit message.
git commit --message "<message>"
No comments:
Post a Comment