-
-
Save tsai-jimmy/aa4434879f03e6684e24b80958d63237 to your computer and use it in GitHub Desktop.
Revisions
-
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -48,4 +48,4 @@ These are instructions for setting up git to authenticate with GitHub when you h You should NOT be asked for your username and password, instead you should see `Everything up-to-date`. Rejoice and close the shell. If your test repository isn't important, you can delete it from the bcgov GitHub account. -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,9 +23,9 @@ These are instructions for setting up git to authenticate with GitHub when you h 4. [Set up a personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use) for accessing GitHub repositories - I recommend giving it `gist`, `repo`, and `user` scope. *Make sure you copy the token now as you won't be able to later* 5. Create a test repository in the [bcgov organization](https://github.com/bcgov). 6. Clone the repository on the command line (terminal/git bash window): ``` git clone https://github.com/bcgov/[my-test-repo] ``` @@ -39,7 +39,7 @@ These are instructions for setting up git to authenticate with GitHub when you h git push -u origin master ``` At this point you'll be asked for your username and password. Enter your username, then in the password prompt *paste your Personal Access Token you created in step 3*. (Note: in the Windows git bash shell, paste with Shift+Insert or right-click -> paste) 9. Now push AGAIN. ``` -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ These are instructions for setting up git to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. These are intentionally brief instructions, with links to more detail in the appropriate places. 1. Download and install the [git command-line client](https://git-scm.com/download) (if required). 2. Open the git bash window and [introduce yourself to git](http://happygitwithr.com/hello-git.html) (if required): ``` git config --global user.name 'Firstname Lastname' -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ These are instructions for setting up git to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. These are intentionally brief instructions, with links to more detail in the appropriate places. 1. Download and install the [git command-line client](https://git-scm.com/download) @@ -11,12 +11,12 @@ These are instructions for setting up git to authenticate with GitHub when you h 3. Turn on the credential helper to cache your credentials (so you only need to do this once): a. Windows ([more detailed instructions here](https://help.github.com/articles/caching-your-github-password-in-git/#platform-windows)): ``` git config --global credential.helper wincred ``` b. Mac ([more detailed instructions here](https://help.github.com/articles/caching-your-github-password-in-git/#platform-mac)): ``` git config --global credential.helper osxkeychain ``` -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,7 @@ These are instructions for setting up git to authenticate with GitHub when you h ``` 3. Turn on the credential helper to cache your credentials (so you only need to do this once): a. Windows ([more detailed instructions here](https://help.github.com/articles/caching-your-github-password-in-git/#platform-windows): ``` git config --global credential.helper wincred -
ateucher renamed this gist
Feb 14, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 8 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ These are instructions for setting up git to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. 1. Download and install the [git command-line client](https://git-scm.com/download) 2. Open the git bash window and [Introduce yourself to git](http://happygitwithr.com/hello-git.html): @@ -10,9 +10,15 @@ These are instructions for setting up git on your Windows machine to authenticat ``` 3. Turn on the credential helper to cache your credentials (so you only need to do this once): a. Windows ([more detailed instructions here](https://help.github.com/articles/caching-your-github-password-in-git/#platform-windows): ``` git config --global credential.helper wincred ``` b. Mac ([more detailed instructions here](https://help.github.com/articles/caching-your-github-password-in-git/#platform-mac): ``` git config --global credential.helper osxkeychain ``` 4. [Set up a personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use) for accessing GitHub repositories - I recommend giving it `gist`, `repo`, and `user` scope. *Make sure you copy the token now as you won't be able to later* -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ These are instructions for setting up git on your Windows machine to authenticat git config --global credential.helper wincred ``` 4. [Set up a personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use) for accessing GitHub repositories - I recommend giving it `gist`, `repo`, and `user` scope. *Make sure you copy the token now as you won't be able to later* 5. Create test repository in the bcgov org. -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ These are instructions for setting up git on your Windows machine to authenticat git config --global credential.helper wincred ``` 4. Set up a [personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use) for accessing GitHub repositories - I recommend giving it `gist`, `repo`, and `user` scope. *Make sure you copy the token now as you won't be able to later* 5. Create test repository in the bcgov org. -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ These are instructions for setting up git on your Windows machine to authenticat 1. Download and install the [git command-line client](https://git-scm.com/download/win) 2. Open the git bash window and [Introduce yourself to git](http://happygitwithr.com/hello-git.html): ``` git config --global user.name 'Firstname Lastname' -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ These are instructions for setting up git on your Windows machine to authenticat git config --global user.email '[email protected]' ``` 3. Turn on the credential helper to cache your credentials (so you only need to do this once): ``` git config --global credential.helper wincred ``` -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ These are instructions for setting up git on your Windows machine to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. 1. Download and install the [git command-line client](https://git-scm.com/download/win) -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ These are instructions for setting up git on your Windows machine to authenticate with GitHub when you have 2-factor authentication set up. 1. Download and install the [git command-line client](https://git-scm.com/download/win) 2. [Introduce yourself to git](http://happygitwithr.com/hello-git.html): @@ -12,7 +14,7 @@ git config --global credential.helper wincred ``` 4. Set up a [personal access token for github](https://help.github.com/articles/creating-an-access-token-for-command-line-use) - I recommend giving it `gist`, `repo`, and `user` scope. *Make sure you copy the token now as you won't be able to later* 5. Create test repository in the bcgov org. -
ateucher renamed this gist
Feb 14, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 7 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,11 @@ 1. Download and install the [git command-line client](https://git-scm.com/download/win) 2. [Introduce yourself to git](http://happygitwithr.com/hello-git.html): ``` git config --global user.name 'Firstname Lastname' git config --global user.email '[email protected]' ``` 3. Turn on the credential helper to cache your credentials: ``` @@ -16,7 +21,7 @@ git clone https://github.com/bcgov/[my-test-repo] ``` 7. Make any change you want in your local repository. Eg., make or edit your `README.md` file. 8. Add, commit, and push your changes: ``` -
ateucher revised this gist
Feb 14, 2017 . 1 changed file with 9 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,9 @@ 2. [Introduce yourself to git](http://happygitwithr.com/hello-git.html) 3. Turn on the credential helper to cache your credentials: ``` git config --global credential.helper wincred ``` 4. Set up a [personal access token for github](https://help.github.com/articles/creating-an-access-token-for-command-line-use) - I recommend giving it gist, repo, and user scope. *Make sure you copy the token now as you won't be able to later* @@ -28,9 +28,10 @@ git config --global credential.helper wincred At this point you'll be asked for your username and password. Enter your username, then in the password prompt *paste your Personal Access Token you created in step 3*. (Note: in the windows git bash shell, paste with Shift+Insert or right-click -> paste) 9. Now push AGAIN. ``` git push ``` You should NOT be asked for your username and password, instead you should see `Everything up-to-date`. Rejoice and close the shell. -
ateucher created this gist
Feb 14, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ 1. Download and install the [git command-line client](https://git-scm.com/download/win) 2. [Introduce yourself to git](http://happygitwithr.com/hello-git.html) 3. Turn on the credential helper to cache your credentials: ``` git config --global credential.helper wincred ``` 4. Set up a [personal access token for github](https://help.github.com/articles/creating-an-access-token-for-command-line-use) - I recommend giving it gist, repo, and user scope. *Make sure you copy the token now as you won't be able to later* 5. Create test repository in the bcgov org. 6. Clone the repository on the command line: ``` git clone https://github.com/bcgov/[my-test-repo] ``` 7. Make any change you want in your local repository. Eg., make or edit a README.md file 8. Add, commit, and push your changes: ``` git add README.md git commit -m "Edit README" git push -u origin master ``` At this point you'll be asked for your username and password. Enter your username, then in the password prompt *paste your Personal Access Token you created in step 3*. (Note: in the windows git bash shell, paste with Shift+Insert or right-click -> paste) 9. Now push AGAIN. ``` git push ``` You should NOT be asked for your username and password, instead you should see `Everything up-to-date`. Rejoice and close the shell.