How to add a single file to a repository

Dion Oliphant March 23, 2015

Hi,

How do I add a single or a few selected files to a bitbucket repository using SourceTree

3 answers

1 accepted

1 vote
Answer accepted
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2015
  1. Clone the repo if you have not already done so
  2. Put the files in the folder where you cloned the repo
  3. Commit and push the changes

 

0 votes
Dion Oliphant March 23, 2015

Thanks for the answers.

0 votes
rahuldanwade
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 23, 2015

Hi Dion

Which SCM do you use for your source code?

If it is GIT

Then add them bit by bit back in using git add.

git add [file-name-1.ext] [file-name-2.ext].....[file-name-n.ext]

git commit -m "X no of files added from Y no of  files"

git push origin master

that will do.

regards

Rahul Danwade

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events