Skip to content

Commit b8f6b42

Browse files
committed
Merge pull request #14 from gnithin/master
Change to git root directory before adding files.
2 parents ac76c20 + c5c5542 commit b8f6b42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-fire

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ new_branch() {
2828

2929
fire() {
3030
git checkout -b "$(new_branch)"
31+
32+
# cd to git root directory
33+
cd $(git rev-parse --show-toplevel)
34+
3135
git add -A
3236

3337
if [ -z "$1" ]; then

0 commit comments

Comments
 (0)