git create master branch in empty repository
Shell
# 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
# make an initial commit in the clone
$ touch README.md
$ git add .
$ git commit -m "add README"
[master (root-commit) 65aab0e] add README
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README.md
# push to origin (i.e. your bare repo)
$ git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 219 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To /Users/jubobs/test-repo.git/
* [new branch] master -> master
Also in Shell:
- Title
- git push set upstream
- Category
- Shell
- Title
- free port in linux
- Category
- Shell
- Title
- npm install mongoose error npm ERR! code ENOSELF
- Category
- Shell
- Title
- install putty on ubuntu
- Category
- Shell
- Title
- linux replace string in files recursively
- Category
- Shell
- Title
- intel pinning threads
- Category
- Shell
- Title
- javascript execute powershell script
- Category
- Shell
- Title
- git push
- Category
- Shell
- Title
- search for files in linux terminal
- Category
- Shell
- Title
- add alias fish shell
- Category
- Shell
- Title
- git files changed between two commits
- Category
- Shell
- Title
- ubuntu ec2 node mongodb connect ECONNREFUSED 127.0.0.1:27017
- Category
- Shell
- Title
- restore deleted branch git
- Category
- Shell
- Title
- linux unzip with password
- Category
- Shell
- Title
- recursive grep recursion depth
- Category
- Shell
- Title
- how to reset git branch to a certain commit.
- Category
- Shell
- Title
- git return from detached head
- Category
- Shell
- Title
- git rename branch
- Category
- Shell
- Title
- linux install ifconfig
- Category
- Shell
- Title
- git create new branch
- Category
- Shell
- Title
- linux convert png favicon
- Category
- Shell
- Title
- does Ubuntu MATE have ssh
- Category
- Shell
- Title
- ubuntu tweak
- Category
- Shell
- Title
- git reset hard
- Category
- Shell
- Title
- git push pull asks for login everytime
- Category
- Shell
- Title
- kill port ubuntu
- Category
- Shell
- Title
- stop docker container
- Category
- Shell
- Title
- ubuntu stop process on port
- Category
- Shell
- Title
- how to turn off bluetooth in ubuntu 18.04 terminal
- Category
- Shell
- Title
- bash list not
- Category
- Shell
- Title
- ubuntu ram type
- Category
- Shell
- Title
- réinstaller interface graphique debian
- Category
- Shell
- Title
- create a docker file
- Category
- Shell
- Title
- how to fix libffi missing in macos
- Category
- Shell
- Title
- rails no migration with version number
- Category
- Shell
- Title
- how to install enzyme
- Category
- Shell
- Title
- touch for powershell
- Category
- Shell
- Title
- setup mysql ubuntu
- Category
- Shell
- Title
- why all git pull create merge commit
- Category
- Shell
- Title
- call shell script from python
- Category
- Shell
- Title
- ubuntu command history
- Category
- Shell
- Title
- mac cleanup github
- Category
- Shell
- Title
- Error while finding module specification for 'virtualenvwrapper.hook_loader' - ubuntu 20
- Category
- Shell
- Title
- ubuntu install composer
- Category
- Shell
- Title
- serverless sqs batch size
- Category
- Shell
- Title
- is it possible to check with my website if an app is installed?
- Category
- Shell
- Title
- linux wc list of files
- Category
- Shell
- Title
- ffmpeg change audio codec from m4a to mp3
- Category
- Shell
- Title
- bash: zipalign: command not found
- Category
- Shell
- Title
- inicializar as credenciais no git
- Category
- Shell
- Title
- run screen on background linux terminal
- Category
- Shell
- Title
- extract tar.gz ubuntu terminal
- Category
- Shell
- Title
- unarchive tar acrhive
- Category
- Shell
- Title
- install skimage
- Category
- Shell
- Title
- git checkout someone else's branch
- Category
- Shell
- Title
- gzip folder with tar
- Category
- Shell
- Title
- git log display files changed
- Category
- Shell
- Title
- git command to create a branch
- Category
- Shell
- Title
- .htaccess
- Category
- Shell
- Title
- linux red hat version
- Category
- Shell
- Title
- install react bootstrap
- Category
- Shell
- Title
- pip3 not found
- Category
- Shell
- Title
- docker getting-started
- Category
- Shell
- Title
- how to delete services in kubernetes
- Category
- Shell
- Title
- remove directory and contents
- Category
- Shell
- Title
- bash if file contains string
- Category
- Shell
- Title
- brew install ngrok
- Category
- Shell
- Title
- how to check if django is installed in ubuntu
- Category
- Shell
- Title
- how to remove installation from cent os
- Category
- Shell
- Title
- remove .svn recursively linux
- Category
- Shell
- Title
- docker compose installation
- Category
- Shell
- Title
- upgrade npm
- Category
- Shell
- Title
- compile h5py
- Category
- Shell
- Title
- git push repo
- Category
- Shell
- Title
- linux replace string in all files
- Category
- Shell
- Title
- force pull github
- Category
- Shell
- Title
- install redux
- Category
- Shell
- Title
- find out a branch a parent branch git
- Category
- Shell
- Title
- python django shell command
- Category
- Shell
- Title
- vmware mukesh003
- Category
- Shell
- Title
- how to install programs in ubuntu using terminal
- Category
- Shell
- Title
- wheres i3 config file
- Category
- Shell
- Title
- how to make maven clean install faster in eclipse
- Category
- Shell
- Title
- remove the last commit git without losing changes
- Category
- Shell
- Title
- git flow hotfix
- Category
- Shell
- Title
- git delete local commit
- Category
- Shell
- Title
- dnstwist kali linux
- Category
- Shell
- Title
- install maven homebrew
- Category
- Shell
- Title
- ubuntu 16.10 vmware
- Category
- Shell
- Title
- Tensorflow GPU Installation conda
- Category
- Shell
- Title
- firewall in ubuntu 18.04
- Category
- Shell
- Title
- using regex in bash conditional statement
- Category
- Shell
- Title
- npm install @angular/fire firebase –save
- Category
- Shell
- Title
- change linux user password
- Category
- Shell
- Title
- loop from array bash
- Category
- Shell
- Title
- babel json loader
- Category
- Shell
- Title
- install pipenv in ubuntu
- Category
- Shell
- Title
- shell hide tab
- Category
- Shell
- Title
- how to install mysql python
- Category
- Shell
- Title
- npm install react
- Category
- Shell