What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-05 11:31:13
rename heroku remote
$ git remote rename heroku heroku-staging Add solution -
Shell/Bash 2021-11-05 05:40:21
git remove untracked branches
# this is powershell script for Windows execution git checkout master; git remote update origin --prune; git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -d $_} Add solution -
Shell/Bash 2021-11-04 06:53:15
add token to cli git
git remote add origin https://[USERNAME]:[NEW TOKEN]@github.com/[USERNAME]/[REPO].git //how to generate token : https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token //or if you ha... Add solution -
Shell/Bash 2021-11-03 23:18:17
github repository's quick setup page
Open Terminal. Change the current working directory to your local project. Initialize the local directory as a Git repository. $ git init Add the files in your new local repository. This stages them for the first commit. $ git add . # Adds the files in th... Add solution -
Shell/Bash 2021-11-03 17:51:11
git push to another repository
Create a new repo at github. Clone the repo from fedorahosted to your local machine. git remote rename origin upstream git remote add origin URL_TO_GITHUB_REPO git push origin master Now you can work with it just like any other github repo. To pull in pa... Add solution