Git

less than 1 minute read

Migrate my notes on Git from Google Keep to here

PR steps

  1. create fork in the console
  2. git pull and git checkout -b new_branch
  3. modify/add/commit/push origin
    git push --set-upstream origin new_branch
  4. create pull request

Sync your fork

  1. git remote add upstream git@xxxxx

  2. git fetch upstream
  3. git checkout main and git merge upstream/main

push fetched to fork

  1. git push # to update
  2. more modify/push
  3. git brach -d new_branch
  4. git push origin -d new_branch ( delete the one in the console)

Tags:

Categories:

Updated: