Get yourself right with Git.
Recommended free course: How to Use Git and GitHub
Commit
If you add any files to the directory, you’ll need to add them to tracking before you commit:
git add --all |
You can’t really commit too much, so commit often (once per logical set of changes is a good rule of thumb). You will likely commit multiple times per hour.
See our Git commit message guidelines.
git commit -am "commit message here" |
Push
A push will upload your local Git repo to its remote counterpart. You do not need to push every time you commit. Make a habit of pushing your repo at least once or twice each work day.
git push origin master |
For reference
(no longer necessary with the latest process)
Create a local repo
Initialize the repo and make your first commit.
git init |
Create a remote repo in GitHub
- Navigate to https://github.com/bhdirect-ebooks
- Click the green “New” button
- Repository name:
- Volume: 13-digit EPUB ISBN
- Set: set short name
- Description: full title of the volume or set
- Select “Private”
- Click “Create repository”
Add the remote to the local repo and push
git remote add origin (the remote repo url) |
Before using (only needed once)
- Create a
.gitignore
file in your home directory (\~/
) - Then, add a line with “.DS_Store” without the quotes to that file
- In your terminal, enter
git config --global core.excludesfile \~/.gitignore |