Hi I am new to code repositories and I am trying to create a custom action that allows me to pull only selected files from a AWS hosted codecommit repository. Where can I find examples or information on what I would need to complete this?
Welcome to Atlassian Community!
The concept of Git is that your local repository is a complete copy of the remote repository. That being said, you can do a sparse clone of a repository by creating an empty repository locally and link it to the remote repository.
git remote add -f origin <URL>
Once you created the empty repository you need to configure what it should pull from the remote.
git config core.sparseCheckout true
Now you need to tell Git which files you want to checkout by adding the paths to sparse-checkout
echo "some/dir" >> .git/info/sparse-checkout
And the last step is to pull from the remote
git pull origin master
@Mikael Sandberg Just in case this comes up else where the solution I was able to find that best met our needs was the following.
1) Add new custom action
2) Script to run: Map path to 7zip.exe
3) Parameters: a C:\path\to\desktop\folder\$SHA.zip $FILE
4) Save Custom action and resart SourceTree
5) Open Repository
6) Select files to download
7) Right Click > Custom Action > select new custom action
Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events