Github_branch
from google.colab import drive
drive.mount('/content/drive')
Mounted at /content/drive
cd /content/drive/MyDrive/Colab\ Notebooks/
/content/drive/MyDrive/Colab Notebooks
!git clone https://github.com/chorok-leader/branch-tutorial.git
Cloning into 'branch-tutorial'...
remote: Enumerating objects: 4, done.[K
remote: Counting objects: 100% (4/4), done.[K
remote: Compressing objects: 100% (3/3), done.[K
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0[K
Unpacking objects: 100% (4/4), done.
cd branch-tutorial/
/content/drive/My Drive/Colab Notebooks/branch-tutorial
!git init
Reinitialized existing Git repository in /content/drive/My Drive/Colab Notebooks/branch-tutorial/.git/
!git config --global user.email "kblee@kw.ac.kr"
!git config --global user.name "chorok-daddy"
!git checkout -b branch-tutorial-branch1
Switched to a new branch 'branch-tutorial-branch1'
!git status
On branch branch-tutorial-branch1
nothing to commit, working tree clean
!git branch
* [32mbranch-tutorial-branch1[m
main[m
!git remote add branch-tutorial https://chorok-daddy:YOUR_GITHUB_TOKEN@github.com/chorok-leader/branch-tutorial.git
!git commit -m "create branch"
On branch branch-tutorial-branch1
nothing to commit, working tree clean
!git push branch-tutorial branch-tutorial-branch1
Total 0 (delta 0), reused 0 (delta 0)
remote:
remote: Create a pull request for 'branch-tutorial-branch1' on GitHub by visiting:[K
remote: https://github.com/chorok-leader/branch-tutorial/pull/new/branch-tutorial-branch1[K
remote:
To https://github.com/chorok-leader/branch-tutorial.git
* [new branch] branch-tutorial-branch1 -> branch-tutorial-branch1