From a945feb02f6d64df2219ea1044251a7fe2ea98fc Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 3 Apr 2021 00:37:03 +0200 Subject: Initial commit. --- git | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 git (limited to 'git') diff --git a/git b/git new file mode 100644 index 0000000..16b8f4f --- /dev/null +++ b/git @@ -0,0 +1,33 @@ +git init +git add . +git commit -m 'Initial commit' +git remote add origin link-to-repo +git push origin master +git branch --set-upstream-to=origin/master master + +git branch new-branch +git switch new-branch +git switch master +git merge new-branch + +git pull -> git fetch && git merge origin/master + +git fetch --dry-run? +git remote show origin +git remote update ~= git fetch --all +git status -uno? + +git fetch +git diff master origin/master + +git branch -a #list branches +git branch -d branch-to-delete + +git log +git show + +git checkout old-commit +git checkout master + +# Pushing to non-bare repo (apply to repo that need to recive update) +git config --local receive.denyCurrentBranch updateInstead -- cgit v1.2.3