Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNelisa Loreto
5,436 Points[git version 2.9.3] Pushing from clone updates git status on remote and changes never make it back to remote
I've been having a lot of problems getting the example in this video to work. The video doesn't actually show the changes affecting the remote from pushes from clone and vice versa (different files are used for each example so you never get to see if remote or clone are actually updated)
My Steps (push from clone to remote, but behaviour is observed both ways):
- REMOTE: git status -- shows everything is up to date, nothing to commit
- CLONE: update files, add to staging, commit
- CLONE: git push origin new_feature -- works with the --set-upstream flag and receive.denyCurrentBranch on REMOTE set to warn
- REMOTE: git status -- shows changes to be committed, lists files that have just been pushed as modified. The modified files do not have the changes that have been pushed from clone
Is there some weird loop happening when changes are being pushed between the remote and clone?
Nelisa Loreto
5,436 PointsYes, on the new_feature branch
Ethan Rivas
9,979 PointsEthan Rivas
9,979 PointsHi, are you doing this changes in a new branch?