Skip to content

Commit e68d0bd

Browse files
committed
up
1 parent c12dfaa commit e68d0bd

14 files changed

+88
-5
lines changed

LICENSE

100644100755
File mode changed.

README.md

100644100755
File mode changed.

create-conflict.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
# From https://gist.github.com/JonathanMH/397fc427842614dd4803
3+
# Described in https://jonathanmh.com/how-to-create-a-git-merge-conflict/
4+
mkdir git-repo
5+
cd git-repo
6+
git init
7+
touch my_code.sh
8+
git add my_code.sh
9+
echo "echo Hello" > my_code.sh
10+
git commit -am 'initial'
11+
git checkout -b new_branch
12+
echo "echo \"Hello World\"" > my_code.sh
13+
git commit -am 'first commit on new_branch'
14+
git checkout master
15+
echo "echo \"Hello World!\"" > my_code.sh
16+
git commit -am 'second commit on master'
17+
git merge new_branch

fake-bash.bat

100644100755
File mode changed.

git-client-config.ps1

100644100755
File mode changed.

git-flow-create.sh

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/bin/bash
2+
# ./git-flow-create.sh
3+
# Written by Wilson Mar ([email protected])
4+
# This creates the conditions for testing Michael Haggerty's "git imerge",
5+
# as described in https://wilsonmar.github.io/git-flow
6+
# cd
7+
8+
# Before running this, copy this file to the folder where you want the test repo created,
9+
# then chmod 555 git-imerge-test-create.sh
10+
# Running this creates a folder above the script folder
11+
# and creates a file named somefile.txt in both the master branch and "branch1" branch.
12+
# This file is in https://github.com/wilsonmar/git-utilities/git-imerge-test-create.sh
13+
# Also see https://jonathanmh.com/how-to-create-a-git-merge-conflict/
14+
# https://github.com/cirosantilli/test-git-conflict
15+
# uses ruby printf statements to generate file content.
16+
17+
echo "## Navigating to working folder:"
18+
cd ~/gits/hotwilson
19+
pwd
20+
echo "## Deleting .git and files from previous run:"
21+
rm -rf git-utilities
22+
exit
23+
#echo "## This hangs if no internet is available:"
24+
#git clone https://github.com/wilsonmar/git-utilities
25+
#cd git-utilities
26+
#git branch -avv
27+
# git checkout master
28+
git checkout -b feat1
29+
echo "more stuff">>README.md
30+
git status
31+
git add README.md -A
32+
git commit -m"Update for show"
33+
git log --graph --oneline
34+
git reflog
35+
exit
36+
37+
git push
38+
git tag v1.3.4
39+
git push --tags
40+
41+
git remote add upstream https://github.com/wilsonmar/git-utilities
42+
# git pull --rebase
43+
git config --global pull.rebase true
44+
git fetch upstream
45+
git checkout master
46+
# git difftool
47+
git merge upstream/master
48+
cat README.md
49+
50+
git request-pull v1.0 https://github.com/upstream/sisters master
51+
52+
echo "## Working upstream:"
53+
git fetch --dry-run
54+
exit
55+
git log ^master origin/master
56+
git fetch upstream
57+
git checkout master
58+
#git pull --rebase --autostash
59+
git merge upstream/master
60+
cat README.md
61+
#git push -u origin master
62+
git config --global alias.up '!git fetch && git rebase --autostash FETCH_HEAD'
63+
git up
64+

git-imerge-test-create.sh renamed to git-imerge-conflict1-create.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,16 @@ git log --pretty=format:"%h %s %ad" --graph --since=1.days --date=relative;
6868
git checkout master
6969
cat somefile.md
7070
git branch -avv
71-
#ls -al
71+
72+
read -p "Press enter to continue"
73+
7274
# You should now have:
7375
# 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 ' ← master
7476
# \
7577
# A -- B -- C --- D --- E --- F --- G --- H --- I ← branch
76-
git checkout feature1
77-
git-imerge start --name=NAME --goal=full master
78-
git imerge diagram --name=NAME
78+
git checkout master
79+
git-imerge start --name=NAME --goal=full feature1
80+
#git imerge diagram --name=NAME
7981
# sed -i "" "s/B2 feature1/B2 master/g" somefile.md
8082
#awk '{gsub(/pattern/,"replacement")}' file
8183
# TODO: Remove <<<<<<< HEAD, =======, line, and >>>>>>> 865fba2c721d68aca6486499f5e9cb33f95f5311
@@ -93,5 +95,5 @@ git imerge diagram --name=NAME
9395
# git commit -m"Fix I9"
9496
# git imerge continue
9597

96-
# git imerge finish
98+
# git imerge finish --goal=merge
9799
# git imerge diagram --name=NAME

git-sample-repo-create.ps1

100644100755
File mode changed.

git-sisters-update.ps1

100644100755
File mode changed.

git-sisters-update.sh

100644100755
File mode changed.

git-upload-new.ps1

100644100755
File mode changed.

my_ps_functions.ps1

100644100755
File mode changed.

ps-auto-log.ps1

100644100755
File mode changed.

wm-ps-utils.psm1

100644100755
File mode changed.

0 commit comments

Comments
 (0)