FreeRadiantBunny docs



develop with git

The program git is used to develop freeradiantbunny.

The git application is used to develop the freeradiantbunny code.

Here is a set of commands that enables one to download the code and then push changes back to the repository.


Start a new branch.

$git checkout bugnet


Show information about your files of code.

$git status


Write some code here.


Show information about your files of code.

$git status


Add you modified code to the branch so that it is ready to commit.

$git add <filename>


Show information about your files of code.

$git status


Commit your code, which says that you want to keep it.

$git commit


Copy your modified code to the given branch ("bugnet") in the repository ("origin").

$git push origin bugnet


Change to the branch of the given branch name. Below "master" is the given branch name.

$git checkout master


Copies your modified code (that is in the "bugnet" branch) to the checked-out branch (which currently is the "master" branch).

$git merge bugnet


Delete the branch of the given branch name. Below "bugnet" is the given branch name.

$git branch -d bugnet


Copies your modified code of the given branch name ("mater") to the repository (i.e. "origin").

$git push origin master


Well, that is it. Now go to the freeradiantbunny repository on BitBucket and see if you changes are really posted in the repository.

Download freeradiantbunny from GitHub

The freeradiantbunny code is hosted on GitHub.


The software project uses GitHub, a web-based hosting service that uses git.

github




Here are some standard git commands to understand:

    git push origin master
    git init
    git add .
    git commit -m "message"
    git branch test
    git checkout test
    git add file.txt
    git commit -m "added file"
    git log --graph --oneline --decode --all
    git merge test branch
    # caution the following will delete the branch
    git branch -d test branch
    git pull
    # update local
    git merge [branch]
    git diff [sourcebranch] [targetbranch]
    git config conolor.ui true    
    # "pull requests"
    # clone repository
    # make a branch and move to it
    git checkout -b fixingbranch
    # make changes
    # commit changes
    # push the branch up to the forked version
    git push origin fixingbranch
    # on github, submit a pull request
    git pull upstream master
    # ... of your fixingbranch
    # merge branch
    git checkout master
    # delete branch
    # caution the following will delete the branch
    git branch -d fixingbranch
  

last updated: 2021