Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
azure:shell [2019/12/18 20:17]
admin
azure:shell [2020/08/18 14:02] (current)
admin
Line 11: Line 11:
   * Bash: ''​cd clouddrive'' ​   * Bash: ''​cd clouddrive'' ​
  
 +===== git setup =====
  
-{{tag> }}+My preferred defaults: 
 +<code bash>git config --global push.default simple 
 +git config --global core.editor "/​usr/​bin/​vim"​ 
 +</​code>​ 
 + 
 +==== Accessing Github ==== 
 + 
 +From https://​codemilltech.com/​cloudshell-git/:​ 
 + 
 +  -- In Cloud Shell: 
 +  .. <code bash>git config --global --unset credential.helper 
 +git config --global credential.helper store</​code>​ 
 +  -- Next time you use ''​git''​ to talk to GitHub, Cloud Shell will prompt you for a username and password (as usual).  
 +    ** Use your normal username 
 +    ** **Don'​t** put in your password (yet) 
 +  -- Create a Github [[https://​help.github.com/​en/​github/​authenticating-to-github/​creating-a-personal-access-token-for-the-command-line|personal access token]]. Set it to ''​repo''​ access scope only. 
 +  -- Enter the personal access token as password 
 + 
 +==== Accessing Azure DevOps ==== 
 + 
 +https://​medium.com/​@seekdavidlee/​setting-up-git-in-azure-cloud-shell-14cc2a4f1d38 
 + 
 + 
 + 
 + 
 + 
 +{{tag> ​git azure bash}}
 ~~DISCUSSION~~ ~~DISCUSSION~~