Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: git checkout how-to for Linux  (Read 539 times)

0 Members and 1 Guest are viewing this topic.

38PTSWarrior

  • Guest
git checkout how-to for Linux
« on: August 23, 2014, 01:24:56 AM »

Hi, I don't know how to do the git checkout command. 1000 thx!

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12057
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: git checkout how-to for Linux
« Reply #1 on: August 23, 2014, 08:28:04 AM »
checkout the FULL explanation
http://wiki.bitshares.org/index.php/BuildInstructionsBitSharesX

however, building from source is for 'advanced users' but I realize that there is no binary for linux users .. we should quickly change that
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

38PTSWarrior

  • Guest
Re: git checkout how-to for Linux
« Reply #2 on: August 23, 2014, 12:23:34 PM »
I know these instructions, but I always wonder what this means:


"For Linux users, remember to checkout the tag 0.4.7 first"


git clone https://github.com/dacsunlimited/bitsharesx.git
git checkout 0.4.7

Do I have to go to the bitsharesx folder in the terminal and then type "git checkout 0.4.7".

Or maybe a better question: How can I see the version while running the client. I cannot find a command, thanks!

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12057
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: git checkout how-to for Linux
« Reply #3 on: August 23, 2014, 12:45:08 PM »
git clone https://github.com/dacsunlimited/bitsharesx.git
git checkout 0.4.7

Do I have to go to the bitsharesx folder in the terminal and then type "git checkout 0.4.7".
Basically this is what you need to do .. yes

Or maybe a better question: How can I see the version while running the client. I cannot find a command, thanks!

Not really .. if you run "about" in the console you can see your git-revision which is a longer string
mine looks like

Code: [Select]
{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "10 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "37 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 09:59:29"
}
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

38PTSWarrior

  • Guest
Re: git checkout how-to for Linux
« Reply #4 on: August 23, 2014, 12:59:16 PM »
Thanks, so now I will update to 0.4.7 by doing:

Delete bitsharesx and everything but the wallet folder of BitShares X (I have made a wallet backup with wallet_export_to_json <json_filename>)

Go to terminal
git clone https://github.com/dacsunlimited/bitsharesx.git
cd bitsharesx
git checkout 0.4.7
git submodule init
git submodule update
cmake .
make

Correct?
« Last Edit: August 23, 2014, 01:03:01 PM by 38PTSWarrior »

Offline svk

Re: git checkout how-to for Linux
« Reply #5 on: August 23, 2014, 01:45:22 PM »
Thanks, so now I will update to 0.4.7 by doing:

Delete bitsharesx and everything but the wallet folder of BitShares X (I have made a wallet backup with wallet_export_to_json <json_filename>)

Go to terminal
git clone https://github.com/dacsunlimited/bitsharesx.git
cd bitsharesx
git checkout 0.4.7
git submodule init
git submodule update
cmake .
make

Correct?
I do the same thing, except for deleting the old directory. I clone into a new one with the version name, and keep the old one for a while just in case..

I compile only the client, using "make bit shares_client"
Worker: dev.bitsharesblocks

38PTSWarrior

  • Guest
Re: git checkout how-to for Linux
« Reply #6 on: August 23, 2014, 01:56:03 PM »
You gave me some good info, thx!
I could not wait for an answer and started already, almost at the 78% peak..

Next time I will use your tips. I guess it saves tons of time to only make bitshares_client.

Offline Riverhead

Re: git checkout how-to for Linux
« Reply #7 on: August 23, 2014, 04:32:57 PM »
Go to your source directory of your previous version (mine is/home/river/github/bitsharesx) and type:
git pull
This just pull the delta
git checkout 0.4.6
./setenv.sh
git submodule init
git submodule update
cmake .
make

Offline Riverhead

Re: git checkout how-to for Linux
« Reply #8 on: August 23, 2014, 04:38:37 PM »



I compile only the client, using "make bit shares_client"

Will that capture changes in the tool kit?

38PTSWarrior

  • Guest
Re: git checkout how-to for Linux
« Reply #9 on: August 23, 2014, 07:32:31 PM »
When I do git pull this comes:

bitsharesx$ git pull
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>


Should I put something after git pull?

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12057
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: git checkout how-to for Linux
« Reply #10 on: August 23, 2014, 07:44:40 PM »
get the repo first:

git clone https://github.com/dacsunlimited/bitsharesx.git

once you have it you can update it with
git pull
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

38PTSWarrior

  • Guest
Re: git checkout how-to for Linux
« Reply #11 on: August 23, 2014, 07:46:54 PM »

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12057
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: git checkout how-to for Linux
« Reply #12 on: August 23, 2014, 08:58:04 PM »
Ah .. I know see your issue ..

git pull origin master
is what you want to do
or even better
git pull origin 0.4.7
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline archLinuxUser

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: git checkout how-to for Linux
« Reply #13 on: August 24, 2014, 05:16:37 AM »

I asked in another thread, but I think this is the appropriate thread to ask in.

How can I find out if I'm running the 0.4.7 client on Arch Linux OS?

I had just built from git about 10 minutes ago and I can't seem to see the version 0.4.7 anywhere.  I don't have good eyes, so it could be I'm just missing it.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "27 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "54 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 21:51:59"
}

Offline bitder

  • Full Member
  • ***
  • Posts: 65
    • View Profile
Re: git checkout how-to for Linux
« Reply #14 on: August 24, 2014, 05:47:33 AM »
You are running 0.4.7
The about output shows that it's commit 987d55167097aceab2fdf7ba98bc6ff0c255378d which is tagged in the git repo as 0.4.7
You can use gitk to view the commits and tags.




I asked in another thread, but I think this is the appropriate thread to ask in.

How can I find out if I'm running the 0.4.7 client on Arch Linux OS?

I had just built from git about 10 minutes ago and I can't seem to see the version 0.4.7 anywhere.  I don't have good eyes, so it could be I'm just missing it.

Code: [Select]
>> about

{
  "bitshares_toolkit_revision": "987d55167097aceab2fdf7ba98bc6ff0c255378d",
  "bitshares_toolkit_revision_age": "27 hours ago",
  "fc_revision": "578527626cccf691e87e4f24e1ad5f4ef45fe084",
  "fc_revision_age": "54 hours ago",
  "compile_date": "compiled on Aug 23 2014 at 21:51:59"
}
wallet_account_set_approval delegate.bitder 1

 

Google+