You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.7 KiB

  1. # ${REPO_NAME}
  2. Use preferably with Vitis Version 2020.2
  3. Created from Template [`${TEMPLATE_NAME}`](${TEMPLATE_LINK})
  4. ### Getting started
  5. 1. After cloning the repository execute the following commands in the cloned folder:
  6. - `git config --local core.hooksPath .githooks` - set path to git-hooks for this repository.
  7. - `git checkout BRANCH` - checkout the BRANCH you want to work with (e.g. `master`) which create local project files (because the hook script will be executed now ; this could take a while).
  8. 2. Open Vitis and select the cloned folder as workspace.
  9. 3. Click on `Inport Project`, choose `Import projects from Git` and click `Next >`.
  10. 4. Choose `Existing local repository` and click `Next >`.
  11. 5. Choose the cloned / workspace folder (should be the only entry) and click `Next >`.
  12. 6. Choose `Import existing Eclipse projects` and click `Next >`.
  13. 7. Leave everything unchanged and click `Finish`.
  14. ### Workflow
  15. - When you want to commit your work, add all files with `git add .` - Files that are not relevant are ignored by the `.gitignore` file.
  16. - During the commit, the `pre-commit` hook script is executed and changes the local-absolute paths to relative paths.
  17. #### Checkout branch
  18. - It is recommended that you follow these steps to checkout a branch:
  19. - Close Vitis.
  20. - Make sure all work is commited.
  21. - Clean up workspace folder with `git clean -dfx`.
  22. - `git checkout BRANCH` - checkout the BRANCH you want to work with (e.g. `master`) which create local project files (because the hook script will be executed now ; this could take a while).
  23. - Follow the instructions in the `Getting started` section from step `2`.