Skip to content

A hands-free automated script that uploads files (in any folder) to your GitHub repository.

License

Notifications You must be signed in to change notification settings

ishaanjav/GitHub-Automated-File-Uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub-Automated-File-Uploader

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

  1. Copy paste the bash function into bash_profile or bashrc. On line 5 of the bash function, enter the path to the folder where the upload.py script is.
  • To do this type open ~/.bash_profile or nano ~/.bash_profile and paste the code in (all inside Terminal)
  1. Install the Selenium Webdriver by typing this in Terminal: pip install selenium
  2. 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.


Features

  • Upload all files in a directory
  • Upload specific files in a directory

In this Repo:

  • Python script
    • for automated uploading of files to GitHub: just run python upload.py followed by the information in the Usage Section
  • 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

Usage

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


Contact Me / Questions

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.

Releases

No releases published

Packages

No packages published