Add code to your repository
PUSH CODE FROM LOCAL GIT REPO:
USING SSH AUTHENCTION:
Your repository is currently empty. Add some code using a selected method and then refresh your browser. Contents added to this repository can take some time to show up in search results. Learn more.
Select an option to push code to your repository:
Push code from a local Git repository
Clone your repository to a local Git repository
Select your preferred authentication method
Setup SSH key. Learn how
If you already have a SSH key on your machine, skip to step 2. Find SSH Keys on your machine .
Register the SSH key with Google Cloud.
Add your Cloud Repository as a remote:
$
git remote add google ssh://ketan.patel@supernal.aero@source.developers.google.com:2022/p/new-user-learning/r/ketancloudsourcerepo
Push from your local Git repository:
$
git push --all google
Once you've completed all these steps, refresh your browser.
USING GOOGLE CLOUD SDK:
Select your preferred authentication method
Install the Google Cloud SDK .
Provide your authentication credentials:
Linux/Mac OS X
Windows
$
gcloud init && git config --global credential.https://source.developers.google.com.helper gcloud.sh
Add your Cloud Repository as a remote:
$
git remote add google https://source.developers.google.com/p/new-user-learning/r/ketancloudsourcerepo
Push from your local Git repository:
$
git push --all google
USING MANUALLY GENERATED CREDENTIALS:
Select your preferred authentication method
Generate and store your Git credentials.
Add your Cloud Repository as a remote:
$
git remote add google https://source.developers.google.com/p/new-user-learning/r/ketancloudsourcerepo
Push from your local Git repository:
$
git push --all google
CLONE YOUR REPOSITORY TO A LOCAL REPO:
USING SSH AUTHENTICATION:
Add code to your repository
Your repository is currently empty. Add some code using a selected method and then refresh your browser. Contents added to this repository can take some time to show up in search results. Learn more.
Select an option to push code to your repository:
Push code from a local Git repository
Clone your repository to a local Git repository
Select your preferred authentication method
Setup SSH key. Learn how
If you already have a SSH key on your machine, skip to step 2. Find SSH Keys on your machine .
Register the SSH key with Google Cloud.
Clone this repository to a local Git repository:
Clone with command line
$
git clone ssh://ketan.patel@supernal.aero@source.developers.google.com:2022/p/new-user-learning/r/ketancloudsourcerepo
Or clone with VS Code Clone
Note: This may display the following message that is safe to ignore:
"warning: You appear to have cloned an empty repository."
Switch to your new local Git repository:
$
cd ketancloudsourcerepo
After you've committed code to your local Git repository, push it to this repository:
$
git push -u origin master
If you are using a version of Git with main as the default branch instead of master, after you've committed code to your local Git repository, push it to this repository using:
$
git push -u origin main
USING GOOGLE CLOUD SDK:
Select your preferred authentication method
Install the Google Cloud SDK .
Provide your authentication credentials:
$
gcloud init
Clone this repository to a local Git repository:
$
gcloud source repos clone ketancloudsourcerepo --project=new-user-learning
Note: This may display the following message that is safe to ignore:
"Warning: remote HEAD refers to a nonexistent ref, unable to checkout."
Switch to your new local Git repository:
$
cd ketancloudsourcerepo
After you've committed code to your local Git repository, push it to this repository:
$
git push -u origin master
If you are using a version of Git with main as the default branch instead of master, after you've committed code to your local Git repository, push it to this repository using:
$
git push -u origin main
Once you've completed all these steps, refresh your browser.
USING MANUALLY GENERATED CREDENTIALS:
Select your preferred authentication method
Generate and store your Git credentials.
Clone this repository to a local Git repository:
Clone with command line
$
git clone https://source.developers.google.com/p/new-user-learning/r/ketancloudsourcerepo
Or clone with VS Code Clone
Note: This may display the following message that is safe to ignore:
"warning: You appear to have cloned an empty repository."
Switch to your new local Git repository:
$
cd ketancloudsourcerepo
After you've committed code to your local Git repository, push it to this repository:
$
git push -u origin master
If you are using a version of Git with main as the default branch instead of master, after you've committed code to your local Git repository, push it to this repository using:
$
git push -u origin main
Once you've completed all these steps, refresh your browser.
No comments:
Post a Comment