No problem, you are the same SHM from mumble right?
Hi, I'm ATC411.
[SOLVED] GIT
Re: [SOLVED] GIT
Yes that is me. Yeah I knew you were 411
SHM
SHM
FG Pilot (2011-2018)
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Re: [SOLVED] GIT
Hi there,
Could someone tell me how I can make changes to a branch I've created?
SHM
Could someone tell me how I can make changes to a branch I've created?
SHM
FG Pilot (2011-2018)
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Re: [SOLVED] GIT
You mean how to change the files in the branch?
If so, you just checkout the branch and edit the files using a text editor.
One you are happy, add them to the staging area:
And commit, with a useful commit message (something significantly better than "fixed a bug"):
For a tutorial, see here: https://www.atlassian.com/git/tutorials/saving-changes
If so, you just checkout the branch and edit the files using a text editor.
Code: Select all
git checkout <your branch>
One you are happy, add them to the staging area:
Code: Select all
git add <list of files or directories where you have made changes>
And commit, with a useful commit message (something significantly better than "fixed a bug"):
Code: Select all
git commit
For a tutorial, see here: https://www.atlassian.com/git/tutorials/saving-changes
Re: [SOLVED] GIT
I'm trying to push another variant of RJAA and I need to completely change the objects folder.
I'll try it out.
Thanks
SHM
I'll try it out.
Thanks
SHM
FG Pilot (2011-2018)
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Re: [SOLVED] GIT
Pushing to a remote repository is a slightly different matter, but all covered in the excellent Atlassian tutorial.
https://www.atlassian.com/git/tutorials ... g/git-push
I usually keep a dedicated upstream branch locally to push from, doing work in a separate branch. Then when I am happy, I merge the changes from the work branch into the upstream branch and push. Then I can always see what's on the remote repo by checking out the upstream branch.
But if I completely mess up the work branch, or just don't like it, I can just delete it and recreate it, e.g.
https://www.atlassian.com/git/tutorials ... g/git-push
I usually keep a dedicated upstream branch locally to push from, doing work in a separate branch. Then when I am happy, I merge the changes from the work branch into the upstream branch and push. Then I can always see what's on the remote repo by checking out the upstream branch.
Code: Select all
git checkout work
# do something interesting
git add .
git commit
git checkout upstream
git merge work # merge the changes I did in work
git push upstream # push it to the remote
But if I completely mess up the work branch, or just don't like it, I can just delete it and recreate it, e.g.
Code: Select all
git checkout upstream # check out my local copy of what is upstream
git branch -D work # delete the branch I didn't like
git checkout -b work # make a new work branch, copied from the upstream
Re: [SOLVED] GIT
Thanks so much for your help. It worked.
SHM
SHM
FG Pilot (2011-2018)
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Prepar3d (2015 - 2023)
MSFS2020 (2020 - )
Return to “Technical Questions”
Who is online
Users browsing this forum: No registered users and 22 guests