Git¶
Putting scripts and configuration files under version control: saving changes, reading the history, working with branches and sharing a repository with a Git server.
Basics: Working directory, staging area and repository, .gitignore, SSH keys and the daily workflow
Setting up¶
-
Name, email address and other settings.
-
Create a new repository.
-
Copy a repository from a server.
Saving changes¶
-
What has changed, what is staged.
-
Mark changes for the next commit.
-
Save changes in the history.
-
Show changes line by line.
-
Discard changes, unstage files.
History¶
Branches¶
-
List, create and delete branches.
-
Switch to another branch.
-
Merge a branch into the current one.
-
Move commits onto another branch.
Working with a server¶
-
Manage connections to Git servers.
-
Download new commits, change nothing.
-
Fetch and merge in one step.
-
Send commits to the server.
Putting work aside¶
-
Put uncommitted changes aside.