Created
August 9, 2011 15:53
-
-
Save mingderwang/1134421 to your computer and use it in GitHub Desktop.
how to make a git server on AWS CE2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ming@ming-laptop:~$ mkdir test | |
ming@ming-laptop:~$ cd test | |
ming@ming-laptop:~/test$ git init | |
Initialized empty Git repository in /home/ming/test/.git/ | |
ming@ming-laptop:~/test$ touch README | |
ming@ming-laptop:~/test$ git add README | |
ming@ming-laptop:~/test$ git commit -m 'init' | |
[master (root-commit) 33baaac] init | |
Committer: ming <ming@ming-laptop.(none)> | |
Your name and email address were configured automatically based | |
on your username and hostname. Please check that they are accurate. | |
You can suppress this message by setting them explicitly: | |
git config --global user.name "Your Name" | |
git config --global user.email you@example.com | |
If the identity used for this commit is wrong, you can fix it with: | |
git commit --amend --author='Your Name <you@example.com>' | |
0 files changed, 0 insertions(+), 0 deletions(-) | |
create mode 100644 README | |
ming@ming-laptop:~/test$ git remote add origin git@url0.info:example.git | |
ming@ming-laptop:~/test$ git push origin master | |
Counting objects: 3, done. | |
Writing objects: 100% (3/3), 201 bytes, done. | |
Total 3 (delta 0), reused 0 (delta 0) | |
To git@url0.info:example.git | |
* [new branch] master -> master | |
on the git server: | |
[git@ip-10-146-47-148 ~]$ cd | |
[git@ip-10-146-47-148 ~]$ mkdir example.git | |
[git@ip-10-146-47-148 ~]$ cd example.git | |
[git@ip-10-146-47-148 example.git]$ git --bare init | |
Initialized empty Git repository in /home/git/example.git/ | |
[git@ip-10-146-47-148 example.git]$ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment