Skip to content

Instantly share code, notes, and snippets.

@idusortus
Last active April 30, 2021 15:31
Show Gist options
  • Save idusortus/8789a71c2288f0c1a727752934592f15 to your computer and use it in GitHub Desktop.
Save idusortus/8789a71c2288f0c1a727752934592f15 to your computer and use it in GitHub Desktop.
Git Installation and Usage Basics for GBAA Custodians
If you have a Lynda.com account, this video provides a lightweight overview of Git and GitHub.
- https://www.lynda.com/GitHub-tutorials/GitHub-Web-Designers/162276-2.html
Don't have a Lynda account? You can use your Brown County Library card to get free access!
- https://www.lynda.com/portal/sip?org=browncountylibrary.org
The (Optional) steps are helpful for Windows users who prefer a Unix style working environment. Note that Git is not a prerequestite for Cmder. I beleive Cmder will work just fine without installing Git First. I installed Cmder after installing Git so I cannot confirm.
Command Line Summary:
- Download and install Git https://git-scm.com/downloads
-- (Optional) Choose "Use Git and optional Unix tools from the Windows Command Prompt"
-- (Optional) Download and install the FULL version of Cmder http://cmder.net/ You can now use
Create a new local repository:
- Start Cmder or Windows Command Prompt
- Create and navigate to a directory for your local copy of the website
- Enter the following command to pull a copy of the website to your computer. It will create a new folder.
git clone https://github.com/GreenBayAA/GreenBayAA.github.io.git
Pushing files to remote repository:
- Start Cmder or Windows Command Prompt
- Navigate to the directory containing the changed file(s)
- Enter the following command to check which files have changed
git status
- If the files indicated in git status are as expected, enter this command to commit the changes
* Provide a detailed commit message
git commit YOURFILENAME -m "Your detailed commit message"
- Push the changes to the online repository
git push
/*
TODO:
- Instructions for GitHub Desktop
- Instructions on merging & conflict resolution
- Instructions on making sure the current local repo is in sync with the master
- ? Change instructions to reference a branch rather than the master repo
- Figure out process flow / responsibilities for merging changes
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment