Ask Your Question
3

What is the process for transferring a dbt project that I made on my desktop to GitHub Online?

asked 2023-06-12 20:37:59 +0000

david gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
2

answered 2023-06-12 20:49:02 +0000

qstack gravatar image
  1. Create a new repository on Github by clicking the “New repository” button on your Github homepage. Give it an appropriate name that will indicate it's associated with your DBT project.
  2. On your desktop, go to your project folder and zip it to save some space.
  3. Once zipped, go back to Github, and click on “Add file” and select “Upload files”. This will bring up a dialog box where you can upload your zipped project.
  4. Click on the “Commit changes” button once uploading is done. Github will now create an address (URL) that represents your project.
  5. Copy this URL and open your DBT project in your local environment.
  6. Using command-line, navigate to your dbt project root directory.
  7. In the terminal, initialize a Git repository using the command “git init”
  8. Link your local Git repository with the Github repository that you just created by running the command “git remote add origin [URL of your project]”. Replace [URL of your project] with the URL you copied in step 3.
  9. Create a new Git branch using the command “git branch -M main”.
  10. Commit your changes to Github’s server using “git push -u origin main,” and it’s done. Your DBT project, along with all of its contents, is now safe and sound on Github's online repository.
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-12 20:37:59 +0000

Seen: 12 times

Last updated: Jun 12 '23