Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hust-x86-simulator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yizhiran
hust-x86-simulator
Commits
bb184663
There was an error fetching the commit references. Please try again later.
Commit
bb184663
authored
6 years ago
by
jie
Browse files
Options
Downloads
Patches
Plain Diff
added recover.sh. use 'make recover'
parent
736632ba
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+4
-0
4 additions, 0 deletions
Makefile
recover.sh
+29
-0
29 additions, 0 deletions
recover.sh
with
33 additions
and
0 deletions
Makefile
+
4
−
0
View file @
bb184663
...
...
@@ -16,4 +16,8 @@ submit: clean
setup
:
STUID
=
$(
STUID
)
STUNAME
=
$(
STUNAME
)
bash setup.sh
recover
:
STUID
=
$(
STUID
)
STUNAME
=
$(
STUNAME
)
bash recover.sh
.PHONY
:
default clean submit
This diff is collapsed.
Click to expand it.
recover.sh
0 → 100644
+
29
−
0
View file @
bb184663
[
-z
${
STUID
}
]
&&
echo
"STUID must be set (RTFM)"
&&
exit
[
-z
${
STUNAME
}
]
&&
echo
"STUNAME must be set (RTFM)"
&&
exit
echo
"uploading public key..."
curl
-F
"id=
${
STUID
}
"
-F
"name=
${
STUNAME
}
"
-F
"file=@
${
HOME
}
/.ssh/id_rsa.pub"
https://dssl.cun.io/teach/api/uploads/pasetup
sleep
2
echo
"recover from remote git..."
git remote add hustpa pa@dssl.cun.io:
${
STUID
}
-git
git fetch hustpa
git branch
-d
pa0
git branch
-d
pa1
git branch
-d
pa2
git branch
-d
pa3
git branch
-d
pa4
git branch
-d
pa5
git checkout hustpa/pa0
git checkout
-b
pa0 hustpa/pa0
git checkout hustpa/pa1
git checkout
-b
pa1 hustpa/pa1
git checkout hustpa/pa2
git checkout
-b
pa2 hustpa/pa2
git checkout hustpa/pa3
git checkout
-b
pa3 hustpa/pa3
git checkout hustpa/pa4
git checkout
-b
pa4 hustpa/pa4
git checkout hustpa/pa5
git checkout
-b
pa5 hustpa/pa5
echo
"done!"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment