You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Add your existing code to directory generated by the NLeSC Python template
2
2
3
+
The following steps require you existing code to be in a GitHub repository already.
4
+
3
5
1. Follow the [instructions to create a new package](https://github.com/NLeSC/python-template#how-to-use) with the Python template, while answering the questions like you would for the existing package.
4
6
5
-
2. Create a Git structure for the new directory: (replace the capitalized name by your own)
7
+
2. Create a Git structure for the new directory: (replace `<NEW_DIRECTORY>` with directory name you used during cookiecutter questionnaire)
6
8
```shell
7
-
$ cd NEW_DIRECTORY
9
+
$ cd<NEW_DIRECTORY>
8
10
$ git init
9
11
$ git add --all
10
-
$ git commit -m "first commit"
12
+
$ git commit -m "Added code generated by cookiecutter"
11
13
$ git branch -M main
12
14
```
13
15
14
-
3. Import the existing repository from Github (Replace `<ORGANIZATION>` with your GitHub organization name , `REPOSITORY` with your GitHub repository name and `<BRANCH>` with your default branch for example `main` or `master`):
16
+
3. Import the existing repository from GitHub (Replace `<ORGANIZATION>` with your GitHub organization name , `<REPOSITORY>` with your GitHub repository name and `<BRANCH>` with your default branch for example `main` or `master`):
0 commit comments