Difference between revisions of "GCP"

From Athenaeum
Jump to: navigation, search
 
Line 8: Line 8:
 
# git config user.name "James"
 
# git config user.name "James"
 
# git remote add origin {full repo url from Google Source} '''ie:''' https://source.developers.google.com/p/nexus-235517/r/Nexus_Ansible
 
# git remote add origin {full repo url from Google Source} '''ie:''' https://source.developers.google.com/p/nexus-235517/r/Nexus_Ansible
 +
# git add .
 +
# git commit -m "Initial Commit"

Latest revision as of 20:04, 17 September 2019

  • Switch Profiles
  1. gcloud config configurations list
  2. gcloud config configurations activate $profile_name
  • Create git repo from existing code directory
  1. git init
  2. git config user.email "[email protected]"
  3. git config user.name "James"
  4. git remote add origin {full repo url from Google Source} ie: https://source.developers.google.com/p/nexus-235517/r/Nexus_Ansible
  5. git add .
  6. git commit -m "Initial Commit"