Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
3.5 kB
3
Indexable
Never
  fu@weedo  ~/git/weedo.git  git --bare init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
Initialized empty Git repository in /home/fu/git/weedo.git/
  fu@weedo  ~/git/weedo.git   master  ls
total 28K
4.0K HEAD  4.0K config  4.0K description  4.0K hooks  4.0K info  4.0K objects  4.0K refs
  fu@weedo  ~/git/weedo.git   master  git add
fatal: this operation must be run in a work tree
  fu@weedo  ~/git/weedo.git   master  ls
total 28K
4.0K HEAD  4.0K config  4.0K description  4.0K hooks  4.0K info  4.0K objects  4.0K refs
  fu@weedo  ~/git/weedo.git   master  cd ..
  fu@weedo  ~/git  rm -rf weedo.git/
  fu@weedo  ~/git  mkdir weedo.git
  fu@weedo  ~/git  cd weedo.git/
  fu@weedo  ~/git/weedo.git  git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
Initialized empty Git repository in /home/fu/git/weedo.git/.git/
  fu@weedo  …/weedo.git   master  git remote add void fu@void:/home/fu/git-projects/weedo.git
  fu@weedo  …/weedo.git   master  git status
On branch master

No commits yet

nothing to commit (create/copy files and use "git add" to track)
  fu@weedo  …/weedo.git   master  ln -s /home/fu/.bashrc bashrc
  fu@weedo  …/weedo.git   master ?  ls
total 0
0 bashrc
  fu@weedo  …/weedo.git   master ?  git add .
  fu@weedo  …/weedo.git   master +  git commit -m "test1"
[master (root-commit) 2710ee0] test1
 Committer: fu <fu@weedo.home>
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. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 1 insertion(+)
 create mode 120000 bashrc
  fu@weedo  …/weedo.git   master  git push void master
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 208 bytes | 208.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To void:/home/fu/git-projects/weedo.git
 * [new branch]      master -> master
  fu@weedo  …/weedo.git   master 
Leave a Comment