Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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
Comment

PREVIOUS NEXT
Code Example
Shell :: python re.sub examples 
Shell :: gitgraken pre-receive hook declined 
Shell :: gitignore specific file 
Shell :: removing package using snap 
Shell :: command to make shell variable as an environment variable 
Shell :: tinymce vue 3 
Shell :: flutter ui upload multiple image 
Shell :: bash find and replace all files with specifc name with another file 
Shell :: how to move a file in bash 
Shell :: execute script in linux 
Shell :: github max file size 
Shell :: Set Up Your Username and Email in Git Command 
Shell :: install babel language 
Shell :: how to add filer to git ignore 
Shell :: How to connect to remote computer with public and local ip 
Shell :: bash split pipe output by delimiter 
Shell :: temeprature ubuntu command line 
Shell :: elasticsearch diff between must and should 
Shell :: gunicorn gevent websocket 
Shell :: list all my jobs slurm 
Shell :: Install Chef Habitat from the Command Line 
Shell :: missing mysql_config 
Shell :: rm: cannot remove 
Shell :: linuxbrew on arch 
Shell :: Add the Inkscape repository to your apt package manager 
Shell :: connect to repost git and push exited project 
Shell :: get to directory downloads in ubuntu 20.04 using terminal 
Shell :: def_daemon[19685]: segfault at 7f4d6811b7f0 ip 00007f4d6811b7f0 sp 00007f4d65bcc808 error 15 
Shell :: change default operating system grub 
Shell :: how to edit etc/hosts linux error readonly 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =