What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-30 15:41:05
git remote push
git remote add origin <repository url> # adds a repo to your project git remote # lists all the repos of your project git config --get remote.origin.url # prints the url of a repo git push origin master # updates the master branch of yo... Add solution -
Shell/Bash 2021-09-28 22:56:04
gitlab add remote upstream
# First remove any existing hidden git folder in your project folder # Initialize project in your folder git init # add your gitlab project as your remote origin git remote add origin https://gitlab.com/your_account_name/project_name.git # add all files i... Add solution -
Shell/Bash 2021-09-27 01:32:04
git create new repository
# New local repository git init git add . git commit -m "Initial commit" # New remote repository # Create remote repository (likely on github), then: git remote add origin https://github.com/username/new_repo #https git remote add origin git@gi... Add solution -
Shell/Bash 2021-09-22 22:39:02
update fork
## Add Original Repository git remote add upstream https://github.com/OriginalOwner/OriginalProject.git ## Verify if Repository is added git remote -v ## Fetch Updates from Original Repository git fetch upstream ## Checkout to your master branch git ch... Add solution -
Shell/Bash 2021-09-21 06:38:03
git clone specific commit
# make a new blank repository in the current directory git init # add a remote git remote add origin url://to/source/repository # fetch a commit (or branch or tag) of interest # Note: the full history up to this commit will be retrieved unless # ... Add solution
Best helpers
Ranking is empty