Skip to content

Commit

Permalink
add new file: git_commit_move.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaowu Yang committed Oct 31, 2013
1 parent dcc1ad4 commit c4ba442
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions git_commit_move.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

file_src=/workspace/1/blvds_link/fpga/3
file_dst=/workspace/1/blvds_link/fpga/SmartSOPC_standard_3C25.blvds

#mkdir -p $file_dst
cd $file_src
git log --reverse --oneline | sed 's/\ /\n\ /1' > .1
cd -

cat $file_src/.1 | while read line; do
#echo $line
read line_commit
#echo $line_commit
echo cd $file_src
echo git co -f $line
echo cp -a $file_src\/\* $file_dst\/
echo cd $file_dst
echo git add -f .
echo git ci -a -m \"$line_commit\"
echo
done

0 comments on commit c4ba442

Please sign in to comment.