summaryrefslogtreecommitdiff
path: root/cs/Git.md
diff options
context:
space:
mode:
authornic <ra@afu.re>2025-05-05 10:59:25 -0400
committernic <ra@afu.re>2025-05-05 10:59:25 -0400
commit21ae09ada9d367994b3a00c14bce5836a806b899 (patch)
tree7572094d84b9c185245c84d3dea90e39932e7dcc /cs/Git.md
parent0567d6cd88c593b7d69df371a9804fa384c4b5d6 (diff)
Auto from nzxt - Mon 05 May 2025 10:59:25 AM EDT
Diffstat (limited to 'cs/Git.md')
-rw-r--r--cs/Git.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/cs/Git.md b/cs/Git.md
new file mode 100644
index 0000000..e962bb4
--- /dev/null
+++ b/cs/Git.md
@@ -0,0 +1,34 @@
+git config --global core-pager 'less -FRX'
+git config --local status.showUntrackedFiles no
+
+git init = work
+git init --bare = share
+
+# Add new project on git server
+# on server
+cd /var/git
+mkdir folder
+chown git:git -R folder // or su - git
+cd folder
+git init --bare
+# on machine
+cd /my/project
+git init
+git add .
+git commit -m 'blah blah'
+git remote add origin git@207.148.118.14:/var/git/folder
+
+
+
+git remote -v
+
+???
+
+git push git@afu.re:/var/git/dwm
+
+
+## git for dotfiles
+
+git init --bare $HOME/.g
+alias g='/usr/bin/git --git-dir=$HOME/.g/ --work-tree=$HOME'
+g config --local status.showUntrackedFiles no