You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Choosing an Open-Source License](#choosing-an-open-source-license)
18
27
19
28
# What is Git?
20
29
@@ -354,7 +363,7 @@ If you must change names, make sure to **do the name change in its' own commit**
354
363
355
364
Then, stage and commit changes separately. That way you can actually see the changes line by line. If you do both in one commit, it'll show the old file being deleted and the new different file being added, with no line-by-line comparison.
356
365
357
-
## Password Setup in Git Bash
366
+
## Save Password in Git Bash
358
367
359
368
You’ll want to save your password in Git Bash so you won’t have to type it every time you push or pull. Saving this way will also save it for VS Code.
360
369
@@ -399,4 +408,20 @@ git gc --prune=now
399
408
```
400
409
401
410
* This may take a while to run. Once it is finished, push to the remote repo. You may need to push with the -force keyword.
402
-
* Add your file with sensitive data to a .gitignore file to ensure that you don't accidentally commit it again.
411
+
* Add your file with sensitive data to a .gitignore file to ensure that you don't accidentally commit it again.
412
+
413
+
# Choosing an Open-Source License
414
+
415
+
*This guide is not legal support. Please work with your legal support when choosing a license.*
416
+
417
+
You may decide to use GitHub or Bitbucket to share your project publicly. When you contribute a new project to the open-source community, it is important to choose the correct license. In addition to this guide, you can refer to these great articles:
418
+
419
+
*https://opensource.guide/legal/
420
+
*https://choosealicense.com/
421
+
422
+
Here are some high-level things to watch out for:
423
+
424
+
* The MIT license is a good one to start with because it is simple and permissive.
425
+
* Check the license of any dependencies your code relies on. Some licenses require dependent projects to have specific licenses. This is called *copyleft*.
426
+
* Many R packages are licensed as GPL which requires that all dependent projects also use GPL. If your project relies on R packages it is likely they are GPL and therefore you must use the GPL license. Python does not typically have this restriction.
427
+
* If you expect external contributors, consider Apache Commons 2.0. This license may be better if you want to build a community around your project and you aren't relying on any copyleft projects that restrict your choice of license.
0 commit comments