anyspock
anyspock

Reputation: 11

How to fork a code repository in Palantir Foundry?

I must clone a repository into a new code repository within Palantir Foundry. But the only option available is to create a new branch or clone to my local workstation. Neither is an option for me. Is there a way to fork - or clone a repository into a newly created repository?

I tried creating both a bash script and a Python script within a new code repository that clones the old repository but there is no way to execute the scripts within Palantir Foundry's Code Repositories.

Upvotes: 1

Views: 270

Answers (1)

user5233494
user5233494

Reputation: 245

If you clone the source repository locally, you can add the fork repository as a remote.

Then you can push code from the source repo to the fork repo, as described here: Push local Git repo to new remote including all branches and tags

For example: 

git remote add my_fork <FORK REPO URL GOES HERE>
git push my_fork --all

Upvotes: 0

Related Questions