A hands-free automated script that uploads files to your GitHub repository. The files don't have to be in a git directory, they can be anywhere.
Just type upload
in Terminal, hit enter, and watch it go!
- Setup (Less than a minute)
- Features
- Usage
- Contact Me/Questions
- Copy paste the bash function into
bash_profile
orbashrc
. On line 5 of the bash function, enter the path to the folder where theupload.py
script is.
- To do this type
open ~/.bash_profile
ornano ~/.bash_profile
and paste the code in (all inside Terminal)
- Install the Selenium Webdriver by typing this in Terminal:
pip install selenium
- In
upload.py
, enter in the link for the repository you want to upload to on line 14, and your GitHub login on lines 16 and 17.
That's it! To run the automated tool just type upload
in Terminal and hit enter! For more commands check out the Usage Section.
- Upload all files in a directory
- Upload specific files in a directory
- Python script
- for automated uploading of files to GitHub: just run
python upload.py
followed by the information in the Usage Section
- for automated uploading of files to GitHub: just run
- Bash script
- shorter command to run the automation tool: just type
upload
in terminal and hit enter! - uploads files even if the Python script is not in the same directory
- shorter command to run the automation tool: just type
Open Terminal and type:
upload
and that's it! If you want to upload specific files, type:
upload file1.txt file2.java file3.whatever file4.......
Make sure to follow the instructions in the Setup Section. It takes less than a minute.
Alternatively, you can run python upload.py <DIRECTORY_TO_UPLOAD_FROM>
if you did not use the BASH script in this repo
Have any questions? Contact me at [email protected]
Give this a star if you found it useful and check out my YouTube Channel for similar content.