Comments (5)
@vubo This would be a good issue to practice your markdown skills and git/github skills for branches and pull requests.
Helpful reminders:
- Update your master branch.
* git checkout master
* git remote -v (make sure you have an upstream remote)
* git fetch upstream
* git rebase upstream/master
* git status
* git log - Create a new branch for your README edits
* git branch <new_branch_name>
* git checkout <new_branch_name> - Work on your edits
* git status
* git add <changed_file or files>
* git commit -m"message about the change"
* git log
* git status
* git push origin <new_branch_name> - Go into GitHub and create a pull request
from vms.
@willingc, thank you very much for your help and reminders!
I have a small question. When I do the first part:
- Update your master branch.
- git checkout master
- git remote -v (make sure you have an upstream remote)
- git fetch upstream
- git rebase upstream/master
- git status
- git log
In the logs I see, that the last commit is from me: Fix two bugs... But in systers/master there are not this commits: https://github.com/systers/vms/commits/master
And if I do PR, I will send this old commits too.
How can I pull only my last commit (test commit)?
Thank you!
from vms.
@vubo you'll need to create a new branch, cherry-pick the desired commits and then submit a PR.
(I do it this way)
from vms.
@jayesh92 Nice teamwork commenting on this issue and sharing git cherry-pick
. You are correct that cherry-pick would be one way to do this.
@vubo and @jayesh92: While one could certainly use git cherry-pick
to create a PR, it would be better, in the long run, to get the local master
branch history to be the same as 'upstream', 'origin', and locally.
Valeria, good job noticing that the 'git log' history locally and upstream for master do not have the same commits. In systers/vms repo, the most recent commit is 0190b90 (or the HEAD of the systers/vms master branch).
Looking at Valeria's origin repo at https://github.com/vubo/vms, the master branch is 3 commits ahead of upstream.
And Valeria's origin/test branch (current feature branch) at https://github.com/vubo/vms/tree/test is 4 commits ahead of upstream/master.
Yikes, I need to be in a meeting.
Here is a good resource for understanding branches and git visually: http://pcottle.github.io/learnGitBranching/
More to come later...
from vms.
@willingc and @jayesh92 thank you, I did it: #18
I used reset --hard and then cherry-pick.
I'm turning to the README file now.
from vms.
Related Issues (20)
- Upgrade Django to 3.0.9(latest) HOT 20
- Fix binary string in the URL on the email verification HOT 6
- Add badges to the Readme File for codecov HOT 9
- Fix the unable to locate element error HOT 19
- [Feature] Add Hide/show toggle feature for all password fields HOT 30
- Country, State & City field must be a dropdown in Volunteer Signup HOT 7
- Resize-able Text area in Sign-Up Volunteer HOT 7
- Fix some failing test cases HOT 14
- Bug: Set Top margin of main container HOT 4
- Step by step guide for absolute beginners to contribute HOT 10
- fix label error in sign up
- Setup and run HOT 2
- Bug: Error when registering as admin HOT 7
- Readme for Open Source Hack HOT 2
- Bug: Email Confirmation link is not correct HOT 2
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Add toggling effect on buttons HOT 5
- Deploy to Heroku and write instructions on how to do that HOT 12
- blog: OSH Experience HOT 6
- Admin account activation URL is not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vms.