Importing Content into your New CloudForge Git Repository

Importing from your existing local Git Repository ('push' your local repo to CloudForge)

1. Create a new CloudForge Git repository, it takes up to 5 minutes for it to become available

2. In your existing Git repository, issue the following command:

git push https://USER@ORG.git.cloudforge.com/project.git master

  • where USER = your CloudForge user
  • ORG = your CloudForge organization (aka domain)
  • 'master' is the branch you want to push - in the example we're pusing the 'master' branch, but you can push any other branch you'd like

Importing from just existing files and folders (no local GIT repo)

1. Create a new CloudForge Git repository, it takes up to 5 minutes for it to become available

2. In a directory, issue:

git clone https://USER@ORG.git.cloudforge.com/PROJECT.git

  • where USER = your CloudForge user
  • ORG = your CloudForge organization (aka domain)
  • PROJECT is your CloudForge project
  • an empty project folder will be created locally, this is the empty local git repository

3. Copy your files and folders into the empty project directory created by the previous step

4.  at the project directory level, issue: 

  • git add . - this will add all files and directories
  • git commit -a -m "initial import"- this will commit all files and directories
  • git push origin master - this will push all files and directory to your newly created CloudForge git repository

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.