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
# 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:
- crop video from specific time to specific time ffmpeg
- how to check if pip is installed
- git bash Could not open a connection to your authentication agent. when adding ssh
- set git pull rebase default
- how to change dotnet version
- uninstall webpack globally
- how to run shell script
- git diff show only files
- pgadmin4 ubuntu 20.04
- git flow init
- python version command
- show all processes linux
- set git origin
- get serial number for server using powreshell
- bash call another script relative to current script
- raspbian start gui manually
- fatal: could not read Username for 'https://github.com': Device not configured push crontab
- cordova ios 5.1.0
- git store credentials
- git use file credential
- git bash Could not open a connection to your authentication agent
- how to save environment variables ubuntu
- how to insert a delimiter into an array powershell
- Could not install Visual Studio Build Tools.