在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ucdnetsoc/Hacktoberfest开源软件地址(OpenSource Url):https://github.com/ucdnetsoc/Hacktoberfest开源编程语言(OpenSource Language):Python 14.8%开源软件介绍(OpenSource Introduction):Hacktoberfest==NOTE: Only contribute if you are a Netsoc Member!== Getting your free t-shirtIn order to promote Open Source contributions, Digital Ocean runs a yearly challenge to have 4 Pull Requests successfully merged into an open source project on GitHub. As a reward you get a free t-shirt and most importantly stickers! Installing gitOn many systems, this is already installed for you. Otherwise you can install it by downloading the git CLI. You must also have a GitHub account. You can create an account on their website. Detailed Instructions for Git Bash Installation Git configOne setup item that is important is to tell Git who we are. git config --global user.name "Your Username"
git config --global user.email "Your Email" To have GitHub credit the changes to you, the username must match your GitHub username and the email must match the email you made GitHub with.
Fork the repoWhen you're on the main page of the repository, you'll see a "Fork" button on the top right hand side of the page, underneath the user icon. Click on the button to start the forking process. Cloning the repoNow we'll clone our repository using the git clone https://github.com/{username}/Hacktoberfest.git Next, we'll change directory, so that we're working in the directory of the repository. cd Hacktoberfest We will also add a new remote so that we can sync with official repo. git remote add upstream https://github.com/UCDNetsoc/Hacktoberfest Adding a new feature branchgit checkout -b feature_name The name of the feature branch isn't too important, just give it a descriptive name so you can identify it later on.
Making your changes
Committing your changesIf you want to commit all changes you can do: git add .
git commit -m "Description of commit changes" Sometimes its better to split your changes into multiple commits: git add Contributers.md
git commit -m "Added {name} to X"
git add helloworld/helloworld_{name}
git commit -m "Added hello world in {language}"
git add fizzbuzz/fizzbuzz_{name}
git commit -m "Added fizzbuzz in {language}"
Pushing your changesWe've now laid all the groundwork to push our code to GitHub. So lets do that. In the command line type the following: git push -u origin feature_name Notice we used the Create a pull requestOnce you push your changes to GitHub, a Compare & pull request tab will appear. Click it and you'll be taken to an screen that looks like this: GitHub will allow to create a pull request if there is no competing code. You should add a title and a brief comment. Then, press the "Create pull request" button. Once, you've submitted your code, one of the Sysadmins will take a look it over and then merge it into the main repository What next?Learning gitHere are some resources for learning more about Git: Open Source ProjectsFor BeginnersThere are many different open source projects on GitHub, that you can help. Here's a repositories that have tasks for beginners:
Advanced ProjectsOnce you get comfortable, you can find more open source projects that you can contribute to at:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论