Skip to content

Instantly share code, notes, and snippets.

@redbaron
Created December 14, 2010 16:39
Show Gist options
  • Save redbaron/740666 to your computer and use it in GitHub Desktop.
Save redbaron/740666 to your computer and use it in GitHub Desktop.
[root@rbnote tmp]# mkdir test
[root@rbnote tmp]# touch test/file
[root@rbnote tmp]# chown redbaron test/file
[root@rbnote tmp]# ls -lh test/
итого 0
-rw-r--r-- 1 redbaron root 0 Дек 14 16:37 file
[root@rbnote tmp]# cd test/
[root@rbnote test]# git init
Initialized empty Git repository in /tmp/test/.git/
[root@rbnote test]# git add .
[root@rbnote test]# git commit -m ""
Aborting commit due to empty commit message.
[root@rbnote test]# git commit -m "noop"
[master (root-commit) d0f185a] noop
Committer: System Administrator <root@rbnote.localdomain>
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 file
[root@rbnote test]# ls
file
[root@rbnote test]# cd /tmp/
[root@rbnote tmp]# git clone /tmp/test /tmp/test2
Cloning into /tmp/test2...
done.
[root@rbnote tmp]# cd /tmp/test2
[root@rbnote test2]# ls -lha
итого 0
drwxr-xr-x 3 root root 80 Дек 14 16:38 .
drwxrwxrwt 10 root root 240 Дек 14 16:38 ..
-rw-r--r-- 1 root root 0 Дек 14 16:38 file
drwxr-xr-x 8 root root 260 Дек 14 16:38 .git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment