Files
Mind-Expanding-Books/githubsync.sh
Himanshu Shekhar 5641977db9 Syncing with remote
2016-03-26 12:40:26 +05:30

13 lines
430 B
Bash

#!/bin/sh
# Sync your current repo with github, standard and novice way
# Commit to master branch
# Author : Himanshu Shekhar < https://github.com/himanshushekharb16/ >
# Code at : https://github.com/himanshushekharb16/MyScripts
# read -p "Enter directory location to sync with github : " dirname
# cd $dirname
git add -A
read -r -p "Enter any commit message (if any) : " commsg
git commit -m "$commsg"
git push -u origin master