Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

clone-locally 612 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  1. #!/usr/bin/env bash
  2. # [start-readme]
  3. #
  4. # This script is run on a writer's machine to begin developing Early Access content locally.
  5. #
  6. # [end-readme]
  7. set -e
  8. # Go up a directory
  9. pushd .. > /dev/null
  10. if [ -d "docs-early-access" ]; then
  11. echo "A 'docs-early-access' directory already exists!"
  12. popd > /dev/null
  13. exit 0
  14. fi
  15. # Clone the repo
  16. git clone git@github.com:github/docs-early-access.git
  17. # Go back to the previous working directory
  18. popd > /dev/null
  19. # Symlink the local docs-early-access repo into this repo
  20. node script/early-access/symlink-from-local-repo.js -p ../docs-early-access
  21. echo -e '\nDone!'
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...