β github push not work !
I can't push my app to my github repository in visual studio 2022 pls help
17 Replies
$ask
How to get the best help :catpog:
Make a post in #help or one of the topic channels under Development.
Avoid asking
:catthinking: Can anybody help me?
:catthinking: Has anyone used XYZ?
:catthinking: Why doesn't my code work?
C# is a big area! No one knows they can help unless you tell them about the small area you're trying to work in.
Explain what you are doing, and potentially why for as much context as possible. Avoid screenshots where possible, share code directly in Discord. Type
$code
into chat to learn how to post code.
See https://www.nohello.net and https://dontasktoask.com if you want common help chat room etiquette."Helo me it doesnt work" is not sufficient information to to by. Please include details; such as what errors you get, etc.
when I push my app to github, it does not update
it pushes the old record
that's still not enough info to help you since you aren't providing context. let's start with this info:
1. what command are you running from your local repo to push the changes?
2. what output does that command show?
3. how did you create your local repo? cloned from a github repo? or using
git init
?
4. is the local branch bound to an upstream branch on the remote server?
5. what does git log --pretty=oneline --graph --all
output?basically remove that
the red point
I think it's because of that
that usually just represents a line you removed. if you click on it you should see what line used to be there. i.e. in this screenshot it's showing that I removed
using System.Xml;
when I click on the red triangle.how are you trying to push the changes? what option in VS2022 are you using to do it? have you tried pushing from the command line instead?
exemple : I deleted the line in my project but it is still there on the repository and the previous update shows 1 hour even though I pushed a few seconds ago
^
oh
okay
no just the βgitβ button this : (ps I'm French so I've been going through the translation for a while now)
previous to project button
and send (push)
did you use the "Commit or Stash" feature before trying to push? you changes need to be staged and committed before they can be pushed...
if you want to go to the repo folder and run these commands and show the output in this chat we can determine what state the repo is in to see what steps you need to take to push your local changes:
and this to see info about the remote repo and your local repo:
yes
it's good thx