What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-09-30 16:45:05
git sync branch from master
git checkout master git pull git checkout mybranch git merge master # to keep mybranch in sync with master # then when you're ready to put mobiledevicesupport into master, first merge in master like above, then ... git checkout master git merge mybran... Add solution -
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 23:21:02
git create master branch in empty repository
# initialize your bare repo $ git init --bare test-repo.git # clone it and cd to the clone's root directory $ git clone test-repo.git/ test-clone Cloning into 'test-clone'... warning: You appear to have cloned an empty repository. done. $ cd test-clone ... Add solution