diff --git a/git_scripts/git_add_upstream.bat b/git_scripts/git_add_upstream.bat new file mode 100644 index 0000000..fb336ef --- /dev/null +++ b/git_scripts/git_add_upstream.bat @@ -0,0 +1,3 @@ +git remote -v +git remote add upstream https://github.com/andreika-git/autopid.git +git remote -v diff --git a/git_scripts/git_pull_submodules.bat b/git_scripts/git_pull_submodules.bat new file mode 100644 index 0000000..a59fa05 --- /dev/null +++ b/git_scripts/git_pull_submodules.bat @@ -0,0 +1 @@ +git submodule update --init \ No newline at end of file diff --git a/git_scripts/git_reset_origin_and_pull.bat b/git_scripts/git_reset_origin_and_pull.bat new file mode 100644 index 0000000..1b95887 --- /dev/null +++ b/git_scripts/git_reset_origin_and_pull.bat @@ -0,0 +1,2 @@ +git reset --hard origin/master +git pull diff --git a/git_scripts/git_reset_to_upstream.bat b/git_scripts/git_reset_to_upstream.bat new file mode 100644 index 0000000..283a74f --- /dev/null +++ b/git_scripts/git_reset_to_upstream.bat @@ -0,0 +1,4 @@ +git fetch upstream +git checkout master +git reset --hard upstream/master +git push origin master -f \ No newline at end of file diff --git a/git_scripts/readme.md b/git_scripts/readme.md new file mode 100644 index 0000000..c6cb61f --- /dev/null +++ b/git_scripts/readme.md @@ -0,0 +1,5 @@ +An attempt to make GIT contribution just a little more comfortable + +See also https://github.com/rusefi/rusefi/blob/master/misc/git_cheat_sheet.txt + +See also https://git-scm.com/downloads \ No newline at end of file