Simple setup to configure a local repository in your own machine for our own development.
The first step is to create a new user in your machine called git.
You can use any other name of your choice.
I have chosen the name git just for clarity in usage
$ sudo adduser git
Give password for new user git.
$ su git
$ mkdir ProjectName
$ cd ProjectName
$ git --bare init
$ exit
Now go to the place where you want to work with your project.
$ mkdir MyProject
$ cd MyProject Clone the
$ git clone git@localhost:ProjectName
$ touch README
$ git add README
$ git commit -m "Adding README file" README
$ git push origin master git@localhost's password:
Writing objects: 100% (3/3), 250 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git@localhost:ellisys 194963e..619d2af master -> master
- 42 views
Add new comment