Drag And Drop - psu-libraries/library_data_services GitHub Wiki
Drag and Drop files is a new feature to Github that really lowers the technical bar for many users. However, the added ease of use also introduces some gotchas. These mostly have to do with the fact that Git is versioning your changes and because Git also assumes you have a Git repository on your own computer (that's how it normally works).
To add files to Github
- Make sure your on the files page (usually where you land).
- Choose the file(s) you want and drag them to the files area on the page. It will expand to make a landing area.
- Drop the files
- You will get a form to make a commit. Just add a short message about the files.
To create a new directory do the same, but drag a directory.
To add files to an existing directory you have two options.
- Drag the files to the directory (sometimes misses)
- Navigate on Github into the directory and drag and drop (never misses)
Things to Note
- Adding files with the same name will create new versions of the file if the file has changed. a. The older version is recoverable b. Don't version yourself by naming (ie. file1.txt, file2.text). Let Git do it.
- Be careful versioning files other people may have changed this way. When you start working on a file, its best to get the most recent version from Github. Edit it, then add your edited version for Github to version too.
NOTE: I'm still new to the Drag and Drop, so feel free to add what you learn here PLEASE!.