2013-09-25 30 views
0

我需要更改一組文件,然後再推送它們回購...
方法我正在使用工作方式,它在循環中保留提交'un-push 「 所以我需要手動-forced標籤再次推..git預推鉤未能推動所有東西

for i in files; do 
    edit $i 
    git add $i 
    git commit -o $i -n -m "Updated ..." 
    git tag $TAG -f 
done 

exit 0 

試過ammend以前提交,但未能就這一個爲好。
有沒有辦法,這將推動一切,我希望:

如果與0推前退出,檔案推...

回答

0

好了,我已經解決了它使用別名:

git config --global alias.t '!/path/to/above/script'